コード例 #1
0
ファイル: test_session_pdus.py プロジェクト: kashifpk/smpp5
def test_02_unbind_rsp_decode():
    "Test UnBindResp decoding"
    
    data = b'\x00\x00\x00\x10\x80\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x01'
    P = UnBindResp.decode(data)
    assert '00 00 00 10 80 00 00 06 00 00 00 00 00 00 00 01 ' == hex_convert(P.encode(), 150)