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

Method test_func

Lib/test/test_unittest/test_async_case.py:79–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 self.addAsyncCleanup(self.on_cleanup4)
78
79 async def test_func(self):
80 self.assertEqual(events, expected[:2])
81 events.append('test')
82 VAR.set(VAR.get() + ('test',))
83 self.addCleanup(self.on_cleanup5)
84 self.addAsyncCleanup(self.on_cleanup6)
85
86 async def asyncTearDown(self):
87 self.assertEqual(events, expected[:3])

Callers

nothing calls this directly

Calls 13

addCleanupMethod · 0.80
addAsyncCleanupMethod · 0.80
enterAsyncContextMethod · 0.80
assertRaisesRegexMethod · 0.80
MyExceptionClass · 0.70
TestCMClass · 0.70
LacksEnterAndExitClass · 0.70
LacksEnterClass · 0.70
LacksExitClass · 0.70
assertEqualMethod · 0.45
appendMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected