MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_init

Method test_init

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected