def setUp(self): TargetMixin.setUp(self) self.setupBrokers() if 0: print self.callingBroker.doLog = "TX" self.targetBroker.doLog = " rx"
def setUp(self): TargetMixin.setUp(self) self.tubA, self.tubB = self.makeTubs(2) self.url_on_b = self.tubB.registerReference(Referenceable()) self.lookups = [] self.lookups2 = [] self.names = {} self.names2 = {}
def setUp(self): TargetMixin.setUp(self) (self.tubB, ) = self.makeTubs(1) self.barry = HelperTarget("barry") self.barry_url = self.tubB.registerReference(self.barry) self.bill = HelperTarget("bill") self.bill_url = self.tubB.registerReference(self.bill) self.bob = HelperTarget("bob") self.bob_url = self.tubB.registerReference(self.bob)
def setUp(self): TargetMixin.setUp(self) (self.tubB,) = self.makeTubs(1) self.barry = HelperTarget("barry") self.barry_url = self.tubB.registerReference(self.barry) self.bill = HelperTarget("bill") self.bill_url = self.tubB.registerReference(self.bill) self.bob = HelperTarget("bob") self.bob_url = self.tubB.registerReference(self.bob)
def setUp(self): TargetMixin.setUp(self) self.tubA, self.tubB = [GoodEnoughTub(), GoodEnoughTub()] self.services = [self.tubA, self.tubB] self.tubA.startService() self.tubB.startService() l = self.tubB.listenOn("tcp:0:interface=127.0.0.1") self.tubB.setLocation("127.0.0.1:%d" % l.getPortnum()) self.url_on_b = self.tubB.registerReference(Referenceable()) self.lookups = [] self.lookups2 = [] self.names = {} self.names2 = {}
def setUp(self): TargetMixin.setUp(self) self.tubA, self.tubB = [Tub(), Tub()] self.services = [self.tubA, self.tubB] self.tubA.startService() self.tubB.startService() l = self.tubB.listenOn("tcp:0:interface=127.0.0.1") self.tubB.setLocation("127.0.0.1:%d" % l.getPortnum()) self.url_on_b = self.tubB.registerReference(Referenceable()) self.lookups = [] self.lookups2 = [] self.names = {} self.names2 = {}
def tearDown(self): d = TargetMixin.tearDown(self) def _more(res): return defer.DeferredList([s.stopService() for s in self.services]) d.addCallback(_more) d.addCallback(flushEventualQueue) return d
def setUp(self): TargetMixin.setUp(self) self.tubB = GoodEnoughTub() self.services = [self.tubB] for s in self.services: s.startService() l = s.listenOn("tcp:0:interface=127.0.0.1") s.setLocation("127.0.0.1:%d" % l.getPortnum()) self.barry = HelperTarget("barry") self.barry_url = self.tubB.registerReference(self.barry) self.bill = HelperTarget("bill") self.bill_url = self.tubB.registerReference(self.bill) self.bob = HelperTarget("bob") self.bob_url = self.tubB.registerReference(self.bob)
def setUp(self): TargetMixin.setUp(self) self.tubB = Tub() self.services = [self.tubB] for s in self.services: s.startService() l = s.listenOn("tcp:0:interface=127.0.0.1") s.setLocation("127.0.0.1:%d" % l.getPortnum()) self.barry = HelperTarget("barry") self.barry_url = self.tubB.registerReference(self.barry) self.bill = HelperTarget("bill") self.bill_url = self.tubB.registerReference(self.bill) self.bob = HelperTarget("bob") self.bob_url = self.tubB.registerReference(self.bob)
def setUp(self): TargetMixin.setUp(self) self.setupBrokers()