#NEWLINE# def sendSubmitSmResponse( self , reqPDU ) : #NEWLINE# #INDENT# if ( reqPDU . params [ 'short_message' ] == 'test_error: ESME_RTHROTTLED' ) : #NEWLINE# #INDENT# status = CommandStatus . ESME_RTHROTTLED #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( reqPDU . params [ 'short_message' ] == 'test_error: ESME_RSYSERR' ) : #NEWLINE# #INDENT# status = CommandStatus . ESME_RSYSERR #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( reqPDU . params [ 'short_message' ] == 'test_error: ESME_RREPLACEFAIL' ) : #NEWLINE# #INDENT# status = CommandStatus . ESME_RREPLACEFAIL #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# status = CommandStatus . ESME_ROK #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . lastSubmitSmRestPDU = reqPDU . requireAck ( reqPDU . seqNum , status = status , message_id = str ( random . randint ( 10000000 , 9999999999 ) ) ) #NEWLINE# self . sendPDU ( self . lastSubmitSmRestPDU )