def setUpClass(cls): # save currently configured registry so it can be re-set at the # conclusion of testing cls.current_registry = get_private_registry() # set private registry to a mock registry set_private_registry(MOCK_REGISTRY_DESC)
def tearDownClass(cls): if cls.current_registry: # re-set users private registry set_private_registry(cls.current_registry) else: # re-set to public registry clear_private_registry()
def tearDownClass(cls): # re-set users private registry set_private_registry(cls.current_registry)