summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-23 03:21:39 +0900
committerkali <kali@leap.se>2012-08-23 03:21:39 +0900
commit5636f50cfa36bfa439651b4917b0beb3f9624ea6 (patch)
tree9297220598d740e311a2795ae0aa850c6e283fbe
parent62400207b65644c5238e4e2aa895d78bb844f3a0 (diff)
test_config uses the new leap base testcase
-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()