

def test_is_delivery_jasmin_195(self):
    'Related to #195\n        Mandatory fields in short_message are parsed and optional fields are set to defaults when\n        they dont exist in short_message'
    pdu = DeliverSM(source_addr='1234', destination_addr='4567', short_message='id:c87c2273-7edb-4bc7-8d3a-7f57f21b625e submit date:201506201641 done date:201506201641 stat:DELIVRD err:000')
    isDlr = self.opFactory.isDeliveryReceipt(pdu)
    self.assertTrue((isDlr is not None))
    self.assertEquals(isDlr['id'], 'c87c2273-7edb-4bc7-8d3a-7f57f21b625e')
    self.assertEquals(isDlr['sub'], 'ND')
    self.assertEquals(isDlr['dlvrd'], 'ND')
    self.assertEquals(isDlr['sdate'], '201506201641')
    self.assertEquals(isDlr['ddate'], '201506201641')
    self.assertEquals(isDlr['stat'], 'DELIVRD')
    self.assertEquals(isDlr['err'], '000')
    self.assertEquals(isDlr['text'], '')

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