

def test_data_sm(self):
    for (message_state, _test) in self.message_state_map.iteritems():
        pdu = self.opFactory.getReceipt('data_sm', 'anyid', 'JASMIN', '06155423', message_state, '2017-07-19 17:50:12')
        self.assertEquals(pdu.params['message_state'], _test['state'])
    pdu = self.opFactory.getReceipt('data_sm', 'anyid', 'JASMIN', '06155423', 'ESME_RTHROTTLED', '2017-07-19 17:50:12')
    self.assertEquals(pdu.params['message_state'], MessageState.UNDELIVERABLE)

dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_operations.py ReceiptCreationTestCases.test_data_sm/original