(self)
| 250 | |
| 251 | # "Add a ... TestSuite to the suite" |
| 252 | def test_addTest__TestSuite(self): |
| 253 | class Foo(unittest.TestCase): |
| 254 | def test(self): pass |
| 255 | |
| 256 | suite_2 = unittest.TestSuite([Foo('test')]) |
| 257 | |
| 258 | suite = unittest.TestSuite() |
| 259 | suite.addTest(suite_2) |
| 260 | |
| 261 | self.assertEqual(suite.countTestCases(), 1) |
| 262 | self.assertEqual(list(suite), [suite_2]) |
| 263 | # countTestCases() still works after tests are run |
| 264 | suite.run(unittest.TestResult()) |
| 265 | self.assertEqual(suite.countTestCases(), 1) |
| 266 | |
| 267 | # "Add all the tests from an iterable of TestCase and TestSuite |
| 268 | # instances to this test suite." |
nothing calls this directly
no test coverage detected