Skip to content

Instantly share code, notes, and snippets.

@jerith
Created September 23, 2015 11:32
Show Gist options
  • Select an option

  • Save jerith/25faf3ff873ac1c1f898 to your computer and use it in GitHub Desktop.

Select an option

Save jerith/25faf3ff873ac1c1f898 to your computer and use it in GitHub Desktop.
diff --git a/vumi/transports/smpp/tests/test_protocol.py b/vumi/transports/smpp/tests/test_protocol.py
index da83453..a3d2441 100644
--- a/vumi/transports/smpp/tests/test_protocol.py
+++ b/vumi/transports/smpp/tests/test_protocol.py
@@ -172,6 +172,7 @@ class TestEsmeProtocol(VumiTestCase):
@inlineCallbacks
def test_deliver_sm_fail(self):
yield self.get_protocol()
+ yield self.fake_smsc.bind()
yield self.fake_smsc.send_pdu(DeliverSM(
sequence_number=0, message_id='foo', data_coding=4,
short_message='string with unknown data coding'))
@@ -185,6 +186,7 @@ class TestEsmeProtocol(VumiTestCase):
yield self.get_protocol({
"deliver_sm_decoding_error": "ESME_RSYSERR"
})
+ yield self.fake_smsc.bind()
yield self.fake_smsc.send_pdu(DeliverSM(
sequence_number=0, message_id='foo', data_coding=4,
short_message='string with unknown data coding'))
@hodgestar
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment