management.tests.test_forms.test_pkcs11configform¶
Classes¶
Similar to TransactionTestCase, but use transaction.atomic() to achieve |
Module Contents¶
- class management.tests.test_forms.test_pkcs11configform.PKCS11ConfigFormTestCase(methodName='runTest')[source]¶
Bases:
django.test.TestCaseSimilar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.
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.
- test_form_initialization_with_existing_token()[source]¶
Test that the form initializes with existing token data.
- test_form_initialization_without_existing_token()[source]¶
Test that the form initializes with default values if no token exists.