summaryrefslogtreecommitdiff
path: root/src/leap/base/tests/test_providers.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-27 05:13:29 +0900
committerkali <kali@leap.se>2012-08-27 05:13:29 +0900
commitc2786de7d2d09d600fa516f93cc1a1f851f0d705 (patch)
tree8b14f3b74b7f9e506fb77eb9826a0c4843507667 /src/leap/base/tests/test_providers.py
parentc2955d9655e3e7ccb3c5fc9e7d00a0d493d48a40 (diff)
make provider-fetch tests pass
test provider-definition dump functions. refactored the set-temp-to-home methods to setUpClass separate provider-fetch tests on different testcases (so they actually call to requests).
Diffstat (limited to 'src/leap/base/tests/test_providers.py')
-rw-r--r--src/leap/base/tests/test_providers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/base/tests/test_providers.py b/src/leap/base/tests/test_providers.py
index 2f029930..544355cc 100644
--- a/src/leap/base/tests/test_providers.py
+++ b/src/leap/base/tests/test_providers.py
@@ -48,6 +48,7 @@ class TestLeapProviderDefinition(BaseLeapTest):
# XXX THIS TEST SHOULD MOVE TO test_baseconfig
self.definition.save()
filename = self.definition.filename
+ self.assertTrue(os.path.isfile(filename))
deserialized = json.load(open(filename, 'rb'))
self.assertEqual(deserialized, EXPECTED_DEFAULT_CONFIG)