summaryrefslogtreecommitdiff
path: root/src/leap/eip
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-08-22 12:01:20 -0700
committerantialias <antialias@leap.se>2012-08-22 12:01:20 -0700
commit5b5104604155068992a7939ebb6df034ba374e45 (patch)
tree4b4ab9d1fa96a4b6fb60f76e553ddc1f47c97e88 /src/leap/eip
parent5d848fe4f127ea01615102e6d8f14bfb12dfe2da (diff)
parent1da2cf6bbc64bfc624ea6fed9beb83d301f308d1 (diff)
Merge branch 'develop' of ssh://leap.se:4422/leap-client into get-definition.json
Diffstat (limited to 'src/leap/eip')
-rw-r--r--src/leap/eip/tests/test_config.py25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/leap/eip/tests/test_config.py b/src/leap/eip/tests/test_config.py
index 051faa29..b4ad66e5 100644
--- a/src/leap/eip/tests/test_config.py
+++ b/src/leap/eip/tests/test_config.py
@@ -10,35 +10,22 @@ try:
except ImportError:
import unittest
+from leap.testing.basetest import BaseLeapTest
from leap.eip import config
_system = platform.system()
-class NotImplementedError(Exception):
- pass
-
-# XXX use mock_open here?
-
-
-class EIPConfigTest(unittest.TestCase):
+class EIPConfigTest(BaseLeapTest):
__name__ = "eip_config_tests"
def setUp(self):
- self.old_path = os.environ['PATH']
-
- self.tdir = tempfile.mkdtemp()
-
- bin_tdir = os.path.join(
- self.tdir,
- 'bin')
- os.mkdir(bin_tdir)
- os.environ['PATH'] = bin_tdir
+ pass
def tearDown(self):
- os.environ['PATH'] = self.old_path
- shutil.rmtree(self.tdir)
+ pass
+
#
# helpers
#
@@ -58,7 +45,7 @@ class EIPConfigTest(unittest.TestCase):
def touch_exec(self):
tfile = os.path.join(
- self.tdir,
+ self.tempfile,
'bin',
'openvpn')
open(tfile, 'bw').close()