def test_01_pdu_encode(): "Test PDU encoding" P = PDU() assert '00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 ' == hex_convert(P.encode())