def buildSubmitSmTest(self, sm):

        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)
        self.assertEquals(pdu.params['source_addr'], self.source_addr)
        
        return pdu
TODO: there are some pretty bad inefficiencies here, i believe
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_operations.py/SubmitTest.buildSubmitSmTest--crossover with--dataset/ETHPy150Open williballenthin/python-ntfs/ntfs/filesystem/__init__.py/NonResidentAttributeData.__getslice__