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

Method test_init

Lib/test/test_unittest/test_result.py:47–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 ################################################################
46
47 def test_init(self):
48 result = unittest.TestResult()
49
50 self.assertTrue(result.wasSuccessful())
51 self.assertEqual(len(result.errors), 0)
52 self.assertEqual(len(result.failures), 0)
53 self.assertEqual(result.testsRun, 0)
54 self.assertEqual(result.shouldStop, False)
55 self.assertIsNone(result._stdout_buffer)
56 self.assertIsNone(result._stderr_buffer)
57
58 # "This method can be called to signal that the set of tests being
59 # run should be aborted by setting the TestResult's shouldStop

Callers

nothing calls this directly

Calls 4

wasSuccessfulMethod · 0.95
assertTrueMethod · 0.80
assertIsNoneMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected