Exemplo n.º 1
0
    def tearDown(self):
        try:
            os.unlink(MyJSONConfig.JSON_PATH)
        except FileNotFoundError:
            pass

        TestConfigMixin.tearDown(self)
Exemplo n.º 2
0
    def tearDown(self):
        try:
            os.unlink(MyJSONConfig.JSON_PATH)
        except FileNotFoundError:
            pass

        TestConfigMixin.tearDown(self)
        def tearDown(self):
            try:
                for k in traverse_registry_key(MyRegistryConfig.REGISTRY_KEY, MyRegistryConfig.REGISTRY_PATH):
                    winreg.DeleteKey(MyRegistryConfig.REGISTRY_KEY, k)
            except OSError:
                pass

            TestConfigMixin.tearDown(self)
        def tearDown(self):
            try:
                c = self.CONFIG_TYPE.get_instance()
                c.reset()
            except OSError:
                pass

            TestConfigMixin.tearDown(self)
Exemplo n.º 5
0
        def tearDown(self):
            try:
                for k in traverse_registry_key(MyRegistryConfig.REGISTRY_KEY,
                                               MyRegistryConfig.REGISTRY_PATH):
                    winreg.DeleteKey(MyRegistryConfig.REGISTRY_KEY, k)
            except OSError:
                pass

            TestConfigMixin.tearDown(self)
Exemplo n.º 6
0
        def tearDown(self):
            try:
                c = self.CONFIG_TYPE.get_instance()
                c.del_value_for_option_name('FirstName')
                c.del_value_for_option_name('LastName')
                c.del_value_for_option_name('LuckyNumber')
            except OSError:
                pass

            TestConfigMixin.tearDown(self)