def setUp(self): """ Generate the temporary test configuration. """ try: shutil.rmtree(os.path.join(_config.config['dynamic']['home'], ".exa_test")) except OSError: pass _config.reconfigure(".exa_test") _config.config['logging']['level'] = "1" _config.reconfigure(".exa_test") _config.config['logging']['level'] = "2" _config.reconfigure(".exa_test") _config.config['logging']['level'] = "3" _config.save(nodel=True) _config.reconfigure(".exa_test") self.assertEqual(_config.config['logging']['level'], "0")
def test_save(self): """Test :func:`~exa._config.save`.""" _config.save(True)