예제 #1
0
파일: test_pdu.py 프로젝트: kashifpk/smpp5
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())
예제 #2
0
파일: test_pdu.py 프로젝트: kashifpk/smpp5
def test_02_pdu_decode():
    "Test PDU decoding"
    P = PDU.decode(b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01')
    assert '00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 ' == hex_convert(P.encode())