summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/test_config.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-27 05:45:58 +0900
committerkali <kali@leap.se>2012-08-27 05:49:41 +0900
commit2bbe0e0a2d852a1a7261b2fa927eab6e8f41c8c3 (patch)
tree2dbd03421f32e78c54b0df4855058acd5c8ae1c8 /src/leap/eip/tests/test_config.py
parent09a68fab7d39521ffb5017abaffdb4c946cd5034 (diff)
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.
Diffstat (limited to 'src/leap/eip/tests/test_config.py')
-rw-r--r--src/leap/eip/tests/test_config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/eip/tests/test_config.py b/src/leap/eip/tests/test_config.py
index b6b06346..ed9fe270 100644
--- a/src/leap/eip/tests/test_config.py
+++ b/src/leap/eip/tests/test_config.py
@@ -7,8 +7,9 @@ try:
except ImportError:
import unittest
-from leap.testing.basetest import BaseLeapTest
+from leap.base import constants
from leap.eip import config as eip_config
+from leap.testing.basetest import BaseLeapTest
_system = platform.system()
@@ -62,7 +63,8 @@ class EIPConfigTest(BaseLeapTest):
args.append('unix')
args.append('--config')
args.append(os.path.expanduser(
- '~/.config/leap/providers/default/openvpn.conf'))
+ '~/.config/leap/providers/%s/openvpn.conf'
+ % constants.DEFAULT_TEST_PROVIDER))
return args
# build command string