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

Method test_getTestCaseNames

Lib/test/test_unittest/test_loader.py:1065–1073  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 #

Callers

nothing calls this directly

Calls 2

getTestCaseNamesMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected