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

Method test_defaultTestResult

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

Source from the content-addressed store, hash-verified

142 # unittest.TestResult; subclasses of TestCase should
143 # override this as necessary."
144 def test_defaultTestResult(self):
145 class Foo(unittest.TestCase):
146 def runTest(self):
147 pass
148
149 result = Foo().defaultTestResult()
150 self.assertEqual(type(result), unittest.TestResult)
151
152 # "When a setUp() method is defined, the test runner will run that method
153 # prior to each test. Likewise, if a tearDown() method is defined, the

Callers

nothing calls this directly

Calls 3

FooClass · 0.70
defaultTestResultMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected