本文整理匯總了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)