示例#1
0
 def enquire_link_response(self, P):
     R = EnquireLinkResp()
     R.sequence_number = Integer(P.sequence_number.value, 4)
     data = R.encode()
     self.socket.send(data)
示例#2
0
def test_01_enquirelink_rsp_encode():
    "Test EnquireLinkResp encoding"
    P = EnquireLinkResp()
    
    assert '00 00 00 10 80 00 00 15 00 00 00 00 00 00 00 01 '  == hex_convert(P.encode(),150)