trustpoint.tests.test_page_context

Tests for page_context module.

Classes

TestPageContextMixin

Test cases for PageContextMixin.

Module Contents

class trustpoint.tests.test_page_context.TestPageContextMixin(methodName='runTest')[source]

Bases: django.test.TestCase

Test cases for PageContextMixin.

test_get_context_data_without_super()[source]

Test get_context_data when no super class has get_context_data.

Return type:

None

test_get_context_data_with_super()[source]

Test get_context_data when super class has get_context_data.

Return type:

None

test_get_context_data_none_page_category()[source]

Test get_context_data when page_category is None.

Return type:

None

test_get_context_data_none_page_name()[source]

Test get_context_data when page_name is None.

Return type:

None

test_get_context_data_both_none()[source]

Test get_context_data when both are None.

Return type:

None

test_constants_values()[source]

Test that constants have expected values.

Return type:

None

test_get_context_data_with_devices_category()[source]

Test get_context_data with devices category.

Return type:

None

test_get_context_data_with_pki_category()[source]

Test get_context_data with PKI category.

Return type:

None

test_get_context_data_preserves_kwargs()[source]

Test that kwargs are preserved in the context.

Return type:

None