本文整理汇总了Python中cfme.common.provider.BaseProvider.clear_providers_by_class方法的典型用法代码示例。如果您正苦于以下问题:Python BaseProvider.clear_providers_by_class方法的具体用法?Python BaseProvider.clear_providers_by_class怎么用?Python BaseProvider.clear_providers_by_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cfme.common.provider.BaseProvider
的用法示例。
在下文中一共展示了BaseProvider.clear_providers_by_class方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: has_no_infra_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers_by_class [as 别名]
def has_no_infra_providers():
""" Clears all infrastructure providers from an appliance
This is a destructive fixture. It will clear all infrastructure managements systems from
the current appliance.
"""
BaseProvider.clear_providers_by_class(InfraProvider, validate=True)
示例2: has_no_containers_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers_by_class [as 别名]
def has_no_containers_providers():
""" Clears all containers providers from an appliance
This is a destructive fixture. It will clear all container managements systems from
the current appliance.
"""
BaseProvider.clear_providers_by_class(ContainersProvider, validate=True)
示例3: has_no_middleware_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers_by_class [as 别名]
def has_no_middleware_providers():
"""Clear all middleware providers."""
BaseProvider.clear_providers_by_class(MiddlewareProvider, validate=True)
示例4: delete_providers_after_test
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers_by_class [as 别名]
def delete_providers_after_test():
yield
BaseProvider.clear_providers_by_class(InfraProvider)