本文整理汇总了Python中foolscap.test.common.TargetMixin.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python TargetMixin.setUp方法的具体用法?Python TargetMixin.setUp怎么用?Python TargetMixin.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类foolscap.test.common.TargetMixin
的用法示例。
在下文中一共展示了TargetMixin.setUp方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from foolscap.test.common import TargetMixin [as 别名]
# 或者: from foolscap.test.common.TargetMixin import setUp [as 别名]
def setUp(self):
TargetMixin.setUp(self)
self.setupBrokers()
if 0:
print
self.callingBroker.doLog = "TX"
self.targetBroker.doLog = " rx"
示例2: setUp
# 需要导入模块: from foolscap.test.common import TargetMixin [as 别名]
# 或者: from foolscap.test.common.TargetMixin import setUp [as 别名]
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
# 需要导入模块: from foolscap.test.common import TargetMixin [as 别名]
# 或者: from foolscap.test.common.TargetMixin import setUp [as 别名]
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: setUp
# 需要导入模块: from foolscap.test.common import TargetMixin [as 别名]
# 或者: from foolscap.test.common.TargetMixin import setUp [as 别名]
def setUp(self):
TargetMixin.setUp(self)
self.setupBrokers()