summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/test_checks.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-30 03:43:05 +0900
committerkali <kali@leap.se>2012-08-30 03:43:05 +0900
commitd69976caa5070403f81799c79be974241cff7f70 (patch)
tree6f2e7820a3eed1bf5f200b4043d7d89cb8b6a302 /src/leap/eip/tests/test_checks.py
parente6483d20a5500e86b5fa4e7da63f911641b7e9dd (diff)
fetcher moved to baseconfig + eipchecker using eipservice config.
Diffstat (limited to 'src/leap/eip/tests/test_checks.py')
-rw-r--r--src/leap/eip/tests/test_checks.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/eip/tests/test_checks.py b/src/leap/eip/tests/test_checks.py
index 5697ad10..1e629203 100644
--- a/src/leap/eip/tests/test_checks.py
+++ b/src/leap/eip/tests/test_checks.py
@@ -40,7 +40,8 @@ class EIPCheckTest(BaseLeapTest):
self.assertTrue(hasattr(checker, "check_is_there_default_provider"),
"missing meth")
self.assertTrue(hasattr(checker, "fetch_definition"), "missing meth")
- self.assertTrue(hasattr(checker, "fetch_eip_config"), "missing meth")
+ self.assertTrue(hasattr(checker, "fetch_eip_service_config"),
+ "missing meth")
self.assertTrue(hasattr(checker, "check_complete_eip_config"),
"missing meth")
self.assertTrue(hasattr(checker, "ping_gateway"), "missing meth")
@@ -55,7 +56,7 @@ class EIPCheckTest(BaseLeapTest):
"not called")
self.assertTrue(mc.fetch_definition.called,
"not called")
- self.assertTrue(mc.fetch_eip_config.called,
+ self.assertTrue(mc.fetch_eip_service_config.called,
"not called")
self.assertTrue(mc.check_complete_eip_config.called,
"not called")
@@ -133,13 +134,13 @@ class EIPCheckTest(BaseLeapTest):
# (and proper EIPExceptions are raised).
# Look at base.test_config.
- def test_fetch_eip_config(self):
+ def test_fetch_eip_service_config(self):
with patch.object(requests, "get") as mocked_get:
mocked_get.return_value.status_code = 200
mocked_get.return_value.json = testdata.EIP_SAMPLE_SERVICE
checker = eipchecks.EIPConfigChecker(fetcher=requests)
sampleconfig = testdata.EIP_SAMPLE_JSON
- checker.fetch_definition(config=sampleconfig)
+ checker.fetch_eip_service_config(config=sampleconfig)
def test_check_complete_eip_config(self):
checker = eipchecks.EIPConfigChecker()