@defer.inlineCallbacks
    def test_bind_disabled_user(self):
        user = self.routerpb_factory.getUser('u1')
        user.enabled = False

        # Connect and bind
        yield self.smppc_factory.connectAndBind()
        self.assertEqual(self.smppc_factory.smpp.sessionState, SMPPSessionStates.UNBOUND)
Related to #306
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_smpp_server.py/BindTestCases.test_bind_disabled_user