dhcpkit.tests.utils.test_domain_name module
Test the encoding and parsing of domain names
-
class
dhcpkit.tests.utils.test_domain_name.
DomainNameListTestCase
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp
()[source]
Hook method for setting up the test fixture before exercising it.
-
test_encode_good
()[source]
-
test_parse_good
()[source]
-
class
dhcpkit.tests.utils.test_domain_name.
DomainNameTestCase
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp
()[source]
Hook method for setting up the test fixture before exercising it.
-
test_encode_good
()[source]
-
test_encode_idn
()[source]
-
test_encode_idn_oversized_label
()[source]
-
test_encode_oversized_domain
()[source]
-
test_encode_oversized_label
()[source]
-
test_encode_relative
()[source]
-
test_parse_buffer_overflow
()[source]
-
test_parse_good
()[source]
-
test_parse_idn
()[source]
-
test_parse_idn_oversized_label
()[source]
-
test_parse_oversized_domain
()[source]
-
test_parse_oversized_label
()[source]
-
test_parse_oversized_relative_domain
()[source]
-
test_parse_relative
()[source]
-
test_parse_unending
()[source]
-
class
dhcpkit.tests.utils.test_domain_name.
ValidateDomainLabelTestCase
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_validate_correct_labels
()[source]
-
test_validate_empty_label
()[source]
-
test_validate_invalid_label
()[source]
-
test_validate_oversized_label
()[source]