(self)
| 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 | # ... |
nothing calls this directly
no test coverage detected