dhcpkit_vpp.tests.protocols.test_layer4 module

Test whether layer 4 parsing and generating works

class dhcpkit_vpp.tests.protocols.test_layer4.UDPTestCase(methodName='runTest')[source]

Bases: dhcpkit_vpp.tests.protocols.FrameTestCase

setUp()[source]

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

test_checksum_calculation()[source]
test_save_with_checksum_calculation()[source]
test_save_zero_checksum()[source]
test_udp_length()[source]
test_validate_checksum()[source]
test_validate_destination_port()[source]
test_validate_payload()[source]
test_validate_source_port()[source]
class dhcpkit_vpp.tests.protocols.test_layer4.UnknownLayer4ProtocolTestCase(methodName='runTest')[source]

Bases: dhcpkit_vpp.tests.protocols.FrameTestCase

setUp()[source]

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

test_length()[source]