management.tests

Tests for the management module.

Classes

TestTlsSettingsIpv4

Test cases for the TlsSettings model's IPv4 address field.

Module Contents

class management.tests.TestTlsSettingsIpv4[source]

Test cases for the TlsSettings model’s IPv4 address field.

test_ipv4_address_valid()[source]

Test creating a TlsSettings instance with a valid IPv4 address.

Return type:

None

test_ipv4_address_null()[source]

Test creating a TlsSettings instance with a null IPv4 address.

Return type:

None

test_ipv4_address_blank()[source]

Test creating a TlsSettings instance with a blank IPv4 address.

Return type:

None

test_invalid_ipv4_address()[source]

Test creating a TlsSettings instance with an invalid IPv4 address.

Return type:

None

test_partial_update_of_ipv4_address()[source]

Test updating the ipv4_address after creating the model.

Return type:

None

test_ipv4_address_reject_ipv6()[source]

Test the field rejects an IPv6 address.

Return type:

None