

def buildSubmitSmTest(self, sm):
    '\n        Build a SubmitSm pdu and test if:\n         - command_id is correct\n         - command_status is ESME_ROCK (default value)\n         - destination_addr is the same as self.destination_addr\n         - source_addr is the same as self.source_addr\n        '
    pdu = self.opFactory.SubmitSM(source_addr=self.source_addr, destination_addr=self.destination_addr, short_message=sm)
    self.assertEquals(pdu.id, CommandId.submit_sm)
    self.assertEquals(pdu.status, CommandStatus.ESME_ROK)
    self.assertEquals(pdu.params['destination_addr'], self.destination_addr)
    pdu.assertEquals(pdu.params['source_addr'], self.source_addr)
    return pdu

dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_operations.py SubmitTest.buildSubmitSmTest/VarMisuse@81/210 `self`->`pdu`