MCPcopy Index your code
hub / github.com/python/cpython / test_assert_python_ok

Method test_assert_python_ok

Lib/test/test_script_helper.py:13–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11class TestScriptHelper(unittest.TestCase):
12
13 def test_assert_python_ok(self):
14 t = script_helper.assert_python_ok('-c', 'import sys; sys.exit(0)')
15 self.assertEqual(0, t[0], 'return code was not 0')
16
17 def test_assert_python_failure(self):
18 # I didn't import the sys module so this child will fail.

Callers

nothing calls this directly

Calls 2

assert_python_okMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected