@defer.inlineCallbacks
    def test_deliver_sm_from_smpps(self):

        # Connect and bind
        yield self.smppc_factory.connectAndBind()
        self.assertEqual(self.smppc_factory.smpp.sessionState, SMPPSessionStates.BOUND_TRX)

        raised = False
        try:
            # SMPPClient > SMPPServer
            yield self.smppc_factory.lastProto.sendDataRequest(self.DeliverSmPDU)
        except Exception, e:
            if isinstance(e, SMPPTransactionError):
                raised = True
        self.assertTrue(raised)

        # Wait
        yield waitFor(1)

        self.assertEqual(self.smppc_factory.smpp.sessionState, SMPPSessionStates.NONE)
This test case will ensure smpps will never accept deliver_sm for delivery
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_smpp_server.py/MessagingTestCases.test_deliver_sm_from_smpps