dhcpkit.tests.ipv6.messages.test_message module

Test the Message implementation

class dhcpkit.tests.ipv6.messages.test_message.MessageTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

check_unsigned_integer_property(property_name: str, size: int)[source]

Perform basic verification of validation of an unsigned integer

Parameters:
  • property_name – The property under test
  • size – The number of bits of this integer field
parse_packet()[source]
setUp()[source]

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

test_length()[source]
test_parse()[source]
test_save_fixture()[source]
test_save_parsed()[source]
test_validate()[source]