diff --git a/tsstats/tests/test_config.py b/tsstats/tests/test_config.py index bd74efa..b8bfd42 100644 --- a/tsstats/tests/test_config.py +++ b/tsstats/tests/test_config.py @@ -18,3 +18,12 @@ def test_config(config): assert config.get('General', 'log') == 'tsstats/tests/res/test.log' config.set('General', 'output', 'output.html') assert config.get('General', 'output') == 'output.html' + + +def test_read(): + config = load(path='tsstats/tests/res/config.ini') + # test defaults + assert not config.getboolean('General', 'debug') + # test written values + assert config.get('General', 'log') == 'tsstats/tests/res/test.log' + assert config.get('General', 'output') == 'tsstats/tests/res/output.html'