本文整理汇总了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()