From 2bbe0e0a2d852a1a7261b2fa927eab6e8f41c8c3 Mon Sep 17 00:00:00 2001 From: kali Date: Mon, 27 Aug 2012 05:45:58 +0900 Subject: change default_provider_path to base.constants fix tests by introducing a (dirtish) workaround for check for openvpn keys during vpn connection initialization. noted that eipconnection constructor should be better not having that class of side-effects. --- src/leap/base/tests/test_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/leap/base/tests/test_config.py') diff --git a/src/leap/base/tests/test_config.py b/src/leap/base/tests/test_config.py index 0a98dbaf..67be0e54 100644 --- a/src/leap/base/tests/test_config.py +++ b/src/leap/base/tests/test_config.py @@ -8,6 +8,7 @@ import mock import requests from leap.base import config +from leap.base import constants from leap.base import exceptions from leap.util.fileutil import mkdir_p from leap.testing.basetest import BaseLeapTest @@ -215,7 +216,9 @@ class ConfigHelperFunctions(BaseLeapTest): """ self.assertEqual( config.get_default_provider_path(), - os.path.expanduser('~/.config/leap/providers/default/') + os.path.expanduser( + '~/.config/leap/providers/%s/' % + constants.DEFAULT_TEST_PROVIDER) ) # validate ip -- cgit v1.2.3