summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/eip/tests')
-rw-r--r--src/leap/eip/tests/tests_config.py19
1 files changed, 19 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..5a0e2d94
--- /dev/null
+++ b/src/leap/eip/tests/tests_config.py
@@ -0,0 +1,19 @@
+
+"""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('transport' in config_js)
+ self.assertTrue('provider' in config_js)
+ self.assertEqual(config_js['provider'], "testprovider.org")