]> git.phdru.name Git - m_librarian.git/blobdiff - tests/test_config.py
Docs: Update TODO
[m_librarian.git] / tests / test_config.py
old mode 100755 (executable)
new mode 100644 (file)
index 6e0c6a3..9ebdfe5
@@ -1,19 +1,11 @@
-#! /usr/bin/env python
 
 import os
-import unittest
-from tests import main
 from m_librarian.config import get_config
 
 
-class TestFormat(unittest.TestCase):
-    def test_config(self):
-        config_path = os.path.join(
-            os.path.dirname(__file__), 'test_config.conf')
-        get_config(config_path)
-        ml_conf = get_config()
-        self.assertEqual(ml_conf.get('library', 'path'), '/home/test-config')
-
-
-if __name__ == "__main__":
-    main()
+def test_config():
+    config_path = os.path.join(
+        os.path.dirname(__file__), 'test_config.conf')
+    get_config(config_path)
+    ml_conf = get_config()
+    assert ml_conf.get('library', 'path') == '/home/test-config'