本文整理匯總了Python中foolscap.test.common.TargetMixin類的典型用法代碼示例。如果您正苦於以下問題:Python TargetMixin類的具體用法?Python TargetMixin怎麽用?Python TargetMixin使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了TargetMixin類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: setUp
def setUp(self):
TargetMixin.setUp(self)
self.setupBrokers()
if 0:
print
self.callingBroker.doLog = "TX"
self.targetBroker.doLog = " rx"
示例2: setUp
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 = {}
示例3: setUp
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 = {}
示例4: tearDown
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
示例5: setUp
def setUp(self):
TargetMixin.setUp(self)
self.setupBrokers()