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

Class TestCase

Lib/test/test_unittest/test_case.py:2329–2335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2327 MyException.ninstance -= 1
2328
2329 class TestCase(unittest.TestCase):
2330 def test1(self):
2331 raise MyException()
2332
2333 @unittest.expectedFailure
2334 def test2(self):
2335 raise MyException()
2336
2337 for method_name in ('test1', 'test2'):
2338 testcase = TestCase(method_name)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…