@defer.inlineCallbacks
    def test_unbind_user_session(self):
        user = self.routerpb_factory.getUser('u1')

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

        yield self.smpps_factory.unbindAndRemoveGateway(user, ban = False)
        self.assertEqual(self.smppc_factory.smpp.sessionState, SMPPSessionStates.NONE)
Related to #294
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_smpp_server.py/BindTestCases.test_unbind_user_session