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

Method setUp

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

Source from the content-addressed store, hash-verified

63 'cleanup1']
64 class Test(unittest.IsolatedAsyncioTestCase):
65 def setUp(self):
66 self.assertEqual(events, [])
67 events.append('setUp')
68 VAR.set(VAR.get() + ('setUp',))
69 self.addCleanup(self.on_cleanup1)
70 self.addAsyncCleanup(self.on_cleanup2)
71
72 async def asyncSetUp(self):
73 self.assertEqual(events, expected[:1])

Callers

nothing calls this directly

Calls 6

addCleanupMethod · 0.80
addAsyncCleanupMethod · 0.80
assertEqualMethod · 0.45
appendMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected