diff options
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/common/testing/basetest.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/leap/common/testing/basetest.py b/src/leap/common/testing/basetest.py index 54826d5..3c6fc29 100644 --- a/src/leap/common/testing/basetest.py +++ b/src/leap/common/testing/basetest.py @@ -40,6 +40,14 @@ class BaseLeapTest(unittest.TestCase): @classmethod def setUpClass(cls): + cls.setUpEnv() + + @classmethod + def tearDownClass(cls): + cls.tearDownEnv() + + @classmethod + def setUpEnv(cls): """ Sets up common facilities for testing this TestCase: - custom PATH and HOME environmental variables @@ -57,7 +65,7 @@ class BaseLeapTest(unittest.TestCase): os.environ["HOME"] = cls.tempdir @classmethod - def tearDownClass(cls): + def tearDownEnv(cls): """ Cleanup common facilities used for testing this TestCase: - restores the default PATH and HOME variables |