dhcpkit.tests.ipv6.test_duids module

Test the included DUID types

class dhcpkit.tests.ipv6.test_duids.EnterpriseDUIDTestCase(methodName='runTest')[source]

Bases: dhcpkit.tests.ipv6.test_duids.UnknownDUIDTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_validate_enterprise_number()[source]
test_validate_identifier()[source]
test_validate_length()[source]
test_wrong_parser()[source]
class dhcpkit.tests.ipv6.test_duids.LinkLayerDUIDTestCase(methodName='runTest')[source]

Bases: dhcpkit.tests.ipv6.test_duids.UnknownDUIDTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_display_ethernet()[source]
test_display_other()[source]
test_validate_hardware_type()[source]
test_validate_length()[source]
test_wrong_parser()[source]
class dhcpkit.tests.ipv6.test_duids.LinkLayerTimeDUIDTestCase(methodName='runTest')[source]

Bases: dhcpkit.tests.ipv6.test_duids.UnknownDUIDTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_display_ethernet()[source]
test_display_other()[source]
test_validate_hardware_type()[source]
test_validate_length()[source]
test_validate_time()[source]
test_wrong_parser()[source]
class dhcpkit.tests.ipv6.test_duids.UnknownDUIDTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_hash()[source]
test_parse()[source]
test_parse_with_larger_buffer()[source]
test_save()[source]