Esempio n. 1
0
    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)
Esempio n. 2
0
    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()
Esempio n. 3
0
    def tearDownClass(cls): 

        # re-set users private registry 
        set_private_registry(cls.current_registry)