Class TestCase

Similar to TransactionTestCase, but use `transaction.atomic()` to achieve test isolation.

Declaration

class TestCase(TransactionTestCase)
source link

Documentation

In most situations, TestCase should be preferred to TransactionTestCase as
it allows faster execution. However, there are some situations where using
TransactionTestCase might be necessary (e.g. testing some transactional
behavior).

On database backends with no transaction support, TestCase behaves as
TransactionTestCase.

Class methods

Inherited methods

Reexports