Example #1
0
 def setUp(self):
     TargetMixin.setUp(self)
     self.setupBrokers()
     if 0:
         print
         self.callingBroker.doLog = "TX"
         self.targetBroker.doLog = " rx"
Example #2
0
 def setUp(self):
     TargetMixin.setUp(self)
     self.setupBrokers()
     if 0:
         print
         self.callingBroker.doLog = "TX"
         self.targetBroker.doLog = " rx"
Example #3
0
 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 = {}
Example #4
0
 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 = {}
Example #5
0
    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)
Example #6
0
    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)
Example #7
0
 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 = {}
Example #8
0
 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 = {}
Example #9
0
 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
Example #10
0
 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
Example #11
0
    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)
Example #12
0
    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)
Example #13
0
 def setUp(self):
     TargetMixin.setUp(self)
     self.setupBrokers()
Example #14
0
 def setUp(self):
     TargetMixin.setUp(self)
     self.setupBrokers()