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

Method test_countTestCases

Lib/test/test_unittest/test_case.py:134–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 # "Return the number of tests represented by the this test object. For
133 # TestCase instances, this will always be 1"
134 def test_countTestCases(self):
135 class Foo(unittest.TestCase):
136 def test(self): pass
137
138 self.assertEqual(Foo('test').countTestCases(), 1)
139
140 # "Return the default type of test result object to be used to run this
141 # test. For TestCase instances, this will always be

Callers

nothing calls this directly

Calls 3

FooClass · 0.70
assertEqualMethod · 0.45
countTestCasesMethod · 0.45

Tested by

no test coverage detected