setup_wizard.tests.test_forms.test_backuppasswordformΒΆ
Tests for the BackupPasswordForm.
ClassesΒΆ
Test cases for BackupPasswordForm. |
Module ContentsΒΆ
- class setup_wizard.tests.test_forms.test_backuppasswordform.BackupPasswordFormTestCase(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for BackupPasswordForm.
- test_clean_password_with_validation_success(mock_validate)[source]ΒΆ
Test clean_password method with successful Django validation.
- test_clean_password_with_validation_failure(mock_validate)[source]ΒΆ
Test clean_password method with Django validation failure.
- test_clean_method_with_super_clean_returning_none()[source]ΒΆ
Test clean method behavior when super().clean() returns None.
- test_password_widget_security_attributes()[source]ΒΆ
Test that password widgets have appropriate security attributes.
- test_form_field_help_text_translations()[source]ΒΆ
Test that help text and labels use translation strings.
- test_form_integration_with_real_validation()[source]ΒΆ
Test form with real Django password validation (no mocking).
- test_form_rendering_attributes()[source]ΒΆ
Test that form fields render with correct HTML attributes.
- test_form_csrf_protection_compatibility()[source]ΒΆ
Test that form works correctly with CSRF protection.
- test_password_mismatch_error_behavior()[source]ΒΆ
Test the password mismatch error behavior in detail.
- test_clean_method_error_handling()[source]ΒΆ
Test that clean method properly handles various error conditions.
- test_django_password_validation_integration()[source]ΒΆ
Test integration with Djangoβs password validation system.
- test_bootstrap_form_control_classes()[source]ΒΆ
Test that form uses Bootstrap form-control classes following Trustpoint patterns.