

def test_deliver_sm(self):
    for (message_state, _test) in self.message_state_map.iteritems():
        pdu = self.opFactory.getReceipt('deliver_sm', 'anyid', 'JASMIN', '06155423', message_state, '2017-07-19 17:50:12')
        self.assertEquals(pdu.params['message_state'], _test['state'])
        self.assertTrue((('stat:%s' % _test['sm']) in self.params['short_message']))
    pdu = self.opFactory.getReceipt('deliver_sm', 'anyid', 'JASMIN', '06155423', 'ESME_RTHROTTLED', '2017-07-19 17:50:12')
    self.assertEquals(pdu.params['message_state'], MessageState.UNDELIVERABLE)
    self.assertTrue(('stat:UNDELIV' in pdu.params['short_message']))

dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_operations.py ReceiptCreationTestCases.test_deliver_sm/VarMisuse@79/140 `pdu`->`self`