

def test_is_delivery_clickatell_70(self):
    "Related to #70\n        Parsing clickatell's DLRs\n        "
    pdu = DeliverSM(source_addr='1234', destination_addr='4567', short_message='id:a29f6845555647139e5c8f3b817f2c9a sub:001 dlvrd:001 submit date:141023215253 done date:141023215259 stat:DELIVRD err:000 text:HOLA')
    isDlr = self.opFactory.isDeliveryReceipt(pdu)
    self.assertTrue((isDlr is not None))
    self.assertEquals(isDlr['id'], 'a29f6845555647139e5c8f3b817f2c9a')
    self.assertEquals(isDlr['sub'], '001')
    self.assertEquals(isDlr['dlvrd'], '001')
    self.assertEquals(isDlr['sdate'], '141023215253')
    self.assertEquals(isDlr['ddate'], '141023215259')
    self.assertEquals(isDlr['stat'], 'DELIVRD')
    self.assertEquals(isDlr['err'], '000')
    self.assertEquals(isDlr['text'], 'HOLA')

dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_operations.py DeliveryParsingTest.test_is_delivery_clickatell_70/original