Beispiel #1
0
 def test_on_enquire_link(self):
     transport, protocol = yield self.setup_bind()
     pdu = EnquireLink(sequence_number=0)
     protocol.dataReceived(pdu.get_bin())
     [enquire_link_resp] = yield wait_for_pdus(transport, 1)
     self.assertCommand(
         enquire_link_resp, 'enquire_link_resp', sequence_number=0,
         status='ESME_ROK')
Beispiel #2
0
 def test_on_enquire_link(self):
     protocol = yield self.get_protocol()
     yield self.fake_smsc.bind()
     pdu = EnquireLink(0)
     protocol.dataReceived(pdu.get_bin())
     enquire_link_resp = yield self.fake_smsc.await_pdu()
     self.assertCommand(
         enquire_link_resp, 'enquire_link_resp', sequence_number=0,
         status='ESME_ROK')