trustpoint.tests.test_forms

Tests for forms module.

Classes

TestDisableOptionsSelect

Test cases for DisableOptionsSelect widget.

Module Contents

class trustpoint.tests.test_forms.TestDisableOptionsSelect(methodName='runTest')[source]

Bases: django.test.TestCase

Test cases for DisableOptionsSelect widget.

test_init_without_disabled_options()[source]

Test initialization without disabled options.

Return type:

None

test_init_with_disabled_options()[source]

Test initialization with disabled options.

Return type:

None

test_init_with_attrs()[source]

Test initialization with HTML attributes.

Return type:

None

test_create_option_enabled()[source]

Test creating an enabled option.

Return type:

None

test_create_option_disabled()[source]

Test creating a disabled option.

Return type:

None

test_create_option_with_subindex()[source]

Test creating an option with subindex.

Return type:

None

test_create_option_with_custom_attrs()[source]

Test creating an option with custom attributes.

Return type:

None

test_integration_with_form()[source]

Test integration with a Django form.

Return type:

None