本文整理汇总了Python中ipatests.test_xmlrpc.tracker.host_plugin.HostTracker.exists方法的典型用法代码示例。如果您正苦于以下问题:Python HostTracker.exists方法的具体用法?Python HostTracker.exists怎么用?Python HostTracker.exists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ipatests.test_xmlrpc.tracker.host_plugin.HostTracker
的用法示例。
在下文中一共展示了HostTracker.exists方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: this_host
# 需要导入模块: from ipatests.test_xmlrpc.tracker.host_plugin import HostTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.host_plugin.HostTracker import exists [as 别名]
def this_host(request):
"""Fixture for the current master"""
tracker = HostTracker(name=api.env.host.partition('.')[0],
fqdn=api.env.host)
# This host is not created/deleted, so don't call make_fixture
tracker.exists = True
return tracker
示例2: this_host
# 需要导入模块: from ipatests.test_xmlrpc.tracker.host_plugin import HostTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.host_plugin.HostTracker import exists [as 别名]
def this_host(request):
"""Fixture for the current master"""
tracker = HostTracker(name=api.env.host.partition('.')[0],
fqdn=api.env.host)
tracker.exists = True
# Finalizer ensures that any certificates added to this_host are removed
tracker.add_finalizer_certcleanup(request)
# This host is not created/deleted, so don't call make_fixture
return tracker