def tearDown(self): yield self.SMSCPort.stopListening() yield SMPPClientManagerPBTestCase.tearDown(self)
def setUp(self): yield SMPPClientManagerPBTestCase.setUp(self) self.smsc_f = LastClientFactory() self.smsc_f.protocol = self.protocol self.SMSCPort = reactor.listenTCP(0, self.smsc_f)