def override_config(self, path, value): self.addCleanup(config.assign_path, path, config.get_path(path)) config.assign_path(path, value)