本文整理汇总了Python中buildbot.test.fake.botmaster.FakeBotMaster.startService方法的典型用法代码示例。如果您正苦于以下问题:Python FakeBotMaster.startService方法的具体用法?Python FakeBotMaster.startService怎么用?Python FakeBotMaster.startService使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类buildbot.test.fake.botmaster.FakeBotMaster
的用法示例。
在下文中一共展示了FakeBotMaster.startService方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_setServiceParent_started
# 需要导入模块: from buildbot.test.fake.botmaster import FakeBotMaster [as 别名]
# 或者: from buildbot.test.fake.botmaster.FakeBotMaster import startService [as 别名]
def test_setServiceParent_started(self):
master = self.master = fakemaster.make_master()
botmaster = FakeBotMaster(master)
botmaster.startService()
bs = self.ConcreteBuildSlave('bot', 'pass')
bs.setServiceParent(botmaster)
self.assertEqual(bs.botmaster, botmaster)
self.assertEqual(bs.master, master)
示例2: test_setServiceParent_slaveLocks
# 需要导入模块: from buildbot.test.fake.botmaster import FakeBotMaster [as 别名]
# 或者: from buildbot.test.fake.botmaster.FakeBotMaster import startService [as 别名]
def test_setServiceParent_slaveLocks(self):
"""
http://trac.buildbot.net/ticket/2278
"""
master = self.master = fakemaster.make_master()
botmaster = FakeBotMaster(master)
botmaster.startService()
lock = locks.SlaveLock('lock')
bs = self.ConcreteBuildSlave('bot', 'pass', locks = [lock.access("counting")])
bs.setServiceParent(botmaster)