management.tests.test_views.test_key_storage

Test suite for key_storage views.

Classes

KeyStorageConfigViewTest

Test suite for KeyStorageConfigView.

Module Contents

class management.tests.test_views.test_key_storage.KeyStorageConfigViewTest(methodName='runTest')[source]

Bases: django.test.TestCase

Test suite for KeyStorageConfigView.

setUp()[source]

Set up test fixtures.

test_template_name()[source]

Test that the correct template is used.

test_extra_context_has_page_category()[source]

Test extra_context has correct page_category.

test_extra_context_has_page_name()[source]

Test extra_context has correct page_name.

test_get_context_data_with_software_config()[source]

Test get_context_data with KeyStorageConfig in software storage mode.

test_get_context_data_with_softhsm_config()[source]

Test get_context_data with SoftHSM storage type.

test_get_context_data_with_physical_hsm_config()[source]

Test get_context_data with physical HSM storage type.

test_get_context_data_with_hsm_but_no_config_reference()[source]

Test get_context_data with HSM type but no hsm_config set.

test_get_context_data_with_hsm_no_tokens_at_all()[source]

Test get_context_data with HSM type but no tokens in database.

test_get_context_data_no_config_exists()[source]

Test get_context_data when no KeyStorageConfig exists.

test_get_context_data_preserves_parent_context()[source]

Test get_context_data preserves context from parent class.

test_key_storage_config_view_inherits_from_template_view()[source]

Test KeyStorageConfigView is a TemplateView.