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

Method test_init__empty_tests

Lib/test/test_unittest/test_suite.py:65–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 # TestSuite should deal with empty tests iterables by allowing the
64 # creation of an empty suite
65 def test_init__empty_tests(self):
66 suite = unittest.TestSuite([])
67
68 self.assertEqual(suite.countTestCases(), 0)
69 # countTestCases() still works after tests are run
70 suite.run(unittest.TestResult())
71 self.assertEqual(suite.countTestCases(), 0)
72
73 # "class TestSuite([tests])"
74 # ...

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
assertEqualMethod · 0.45
countTestCasesMethod · 0.45

Tested by

no test coverage detected