management.tests.test_forms.test_security_configΒΆ
Test suite for SecurityConfigForm.
ClassesΒΆ
Test suite for the SecurityConfigForm. |
Module ContentsΒΆ
- class management.tests.test_forms.test_security_config.SecurityConfigFormTest(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest suite for the SecurityConfigForm.
- test_form_initialization_with_instance()[source]ΒΆ
Test form initializes correctly with existing instance.
- test_security_mode_field_is_radio_select()[source]ΒΆ
Test that security_mode uses RadioSelect widget.
- test_auto_gen_pki_field_has_correct_attributes()[source]ΒΆ
Test auto_gen_pki field has data attributes.
- test_form_with_high_security_mode()[source]ΒΆ
Test form with HIGH security mode disables auto_gen_pki.
- test_clean_auto_gen_pki_key_algorithm_with_none()[source]ΒΆ
Test clean method returns instance value when form value is not provided.
- test_clean_auto_gen_pki_key_algorithm_returns_provided_value()[source]ΒΆ
Test clean method uses the provided algorithm value.
- test_clean_auto_gen_pki_key_algorithm_with_value()[source]ΒΆ
Test clean method uses provided value when available.
- test_form_disables_algorithm_field_when_auto_gen_pki_enabled()[source]ΒΆ
Test that algorithm field is disabled when auto_gen_pki is already enabled.