django_async_test.testcase

Internal module reference for django_async_test.testcase.

class django_async_test.testcase.TestCase(methodName='runTest', *args, **kwargs)[source]

Bases: django.test.testcases.TestCase, asynctest.case.TestCase

A testcase that wraps django.test.TestCase and asynctest.TestCase.

run(result=None)[source]

Call django.test.TestCase‘s run method.

setUp()[source]

Override setup method.

Note that asynctest supports setUp as a coroutine however django_async_test.TestCase instead supports a setUpAsync method.

tearDown()[source]

Override tearDown method.

Note that asynctest supports tearDown as a coroutine however django_async_test.TestCase instead supports a tearDownAsync` method.