summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/tests_config.py
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-08-20 17:41:50 -0700
committerantialias <antialias@leap.se>2012-08-20 17:41:50 -0700
commitd5af0f112eca2c9af0344c589d731cd6b3051acf (patch)
treed49b16238b3da49699baf79710bc653f1627284a /src/leap/eip/tests/tests_config.py
parentd908247dcc2cac66d31f081d892a04833206de3b (diff)
added json parsing from eip.json file and some basic tests.
Diffstat (limited to 'src/leap/eip/tests/tests_config.py')
-rw-r--r--src/leap/eip/tests/tests_config.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/leap/eip/tests/tests_config.py b/src/leap/eip/tests/tests_config.py
new file mode 100644
index 00000000..6534723e
--- /dev/null
+++ b/src/leap/eip/tests/tests_config.py
@@ -0,0 +1,18 @@
+
+"""Test config helper functions"""
+
+import unittest
+
+from leap.eip import config
+
+class TestConfig(unittest.TestCase):
+ """
+ Test configuration help functions.
+ """
+ def test_get_config_json(self):
+ config_js = config.get_config_json()
+ self.assertTrue(isinstance(config_js, dict))
+ self.assertTrue(config_js.has_key('transport'))
+ self.assertTrue(config_js.has_key('provider'))
+ self.assertEqual(config_js['provider'], "testprovider.org")
+