PyDocs

Nav

Development Tools

IsolatedAsyncioTestCase

unittest

class · Added in 3.8 (source)
  • IsolatedAsyncioTestCase(methodName='runTest')
This class provides an API similar to TestCase and also accepts coroutines as test functions.
Members of IsolatedAsyncioTestCase

a

addAsyncCleanup
This method accepts a coroutine that can be used as a cleanup function.
asyncSetUp
Method called to prepare the test fixture.
asyncTearDown
Method called immediately after the test method has been called and the result recorded.

e

enterAsyncContext
Enters the supplied asynchronous context manager.

l

loop_factory
The loop_factory passed to asyncio.Runner.

r

run
Sets up a new event loop to run the test, collecting the result into the TestResult object passed as result.
0 Examples
No examples for unittest/IsolatedAsyncioTestCase.
See Also
No see-alsos for unittest/IsolatedAsyncioTestCase
0 Notes
No notes for IsolatedAsyncioTestCase