summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-08-21 13:46:01 -0700
committerantialias <antialias@leap.se>2012-08-21 13:46:01 -0700
commit6ce22c7ebd293550473bfa5453a2f720dffad3e8 (patch)
treef4c19d1bbea969aa6b3279ad038db1d486e5eaf0 /src/leap/eip/tests
parentaf33eaa36c3b799a14a56b7845db3833ed52b97d (diff)
minor pep8 clean up.
Diffstat (limited to 'src/leap/eip/tests')
-rw-r--r--src/leap/eip/tests/tests_config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/eip/tests/tests_config.py b/src/leap/eip/tests/tests_config.py
index 6534723e..5a0e2d94 100644
--- a/src/leap/eip/tests/tests_config.py
+++ b/src/leap/eip/tests/tests_config.py
@@ -5,14 +5,15 @@ 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.assertTrue('transport' in config_js)
+ self.assertTrue('provider' in config_js)
self.assertEqual(config_js['provider'], "testprovider.org")
-