dhcpkit_kafka.tests.messages.test_kafka_message module

Test the KafkaMessage implementation

class dhcpkit_kafka.tests.messages.test_kafka_message.KafkaMessageTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

check_unsigned_integer_property(property_name: str, size: int = None)[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]