]> git.phdru.name Git - m_librarian.git/blob - tests/test_config.py
Add option -C|--config file
[m_librarian.git] / tests / test_config.py
1 #! /usr/bin/env python
2
3 import os
4 import unittest
5 from tests import main
6 from m_librarian.config import get_config
7
8
9 class TestFormat(unittest.TestCase):
10     def test_config(self):
11         config_path = os.path.join(
12             os.path.dirname(__file__), 'test_config.conf')
13         get_config(config_path)
14         ml_conf = get_config()
15         self.assertEqual(ml_conf.get('library', 'path'), '/home/test-config')
16
17
18 if __name__ == "__main__":
19     main()