summaryrefslogtreecommitdiff
path: root/src/leap/services/eip/tests
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-07-31 10:15:25 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-07-31 10:15:25 -0300
commit114d55d6447b18053e53d38d2aedd0ebf1ead0bc (patch)
treecada5d563ff8830843ac189660b26893951cbd46 /src/leap/services/eip/tests
parentd36b671ac12f99699f2195d50e68d5e354f4525b (diff)
Add test for: download new provider config.
Diffstat (limited to 'src/leap/services/eip/tests')
-rw-r--r--src/leap/services/eip/tests/test_providerbootstrapper.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/services/eip/tests/test_providerbootstrapper.py b/src/leap/services/eip/tests/test_providerbootstrapper.py
index 4ef0774c..b24334a2 100644
--- a/src/leap/services/eip/tests/test_providerbootstrapper.py
+++ b/src/leap/services/eip/tests/test_providerbootstrapper.py
@@ -413,6 +413,13 @@ class ProviderBootstrapperActiveTest(unittest.TestCase):
p.write("A")
return provider_path
+ def test_download_provider_info_new_provider(self):
+ self._setup_provider_config_with("1", tempfile.mkdtemp())
+ self._setup_providerbootstrapper(True)
+
+ self.pb._download_provider_info()
+ self.assertTrue(ProviderConfig.save.called)
+
@mock.patch('leap.config.providerconfig.ProviderConfig.get_ca_cert_path',
lambda x: where('cacert.pem'))
def test_download_provider_info_not_modified(self):