(self)
| 1063 | # Test.foobar is defined to make sure getTestCaseNames() respects |
| 1064 | # loader.testMethodPrefix |
| 1065 | def test_getTestCaseNames(self): |
| 1066 | class Test(unittest.TestCase): |
| 1067 | def test_1(self): pass |
| 1068 | def test_2(self): pass |
| 1069 | def foobar(self): pass |
| 1070 | |
| 1071 | loader = unittest.TestLoader() |
| 1072 | |
| 1073 | self.assertEqual(loader.getTestCaseNames(Test), ['test_1', 'test_2']) |
| 1074 | |
| 1075 | # "Return a sorted sequence of method names found within testCaseClass" |
| 1076 | # |
nothing calls this directly
no test coverage detected