diff options
author | Kali Kaneko <kali@leap.se> | 2013-03-15 03:51:30 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-03-15 03:51:30 +0900 |
commit | de1cc5864e652b7d06eda4f15143cd57d074180a (patch) | |
tree | aa806fa8abc618a854466a12d389f52fa4b14095 /src/leap/common/testing/basetest.py | |
parent | 8bc80ce66e182bfcbde9d98d9425fcc99ac450e6 (diff) |
misc fixes (spacing, capitalization)
Diffstat (limited to 'src/leap/common/testing/basetest.py')
-rw-r--r-- | src/leap/common/testing/basetest.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/leap/common/testing/basetest.py b/src/leap/common/testing/basetest.py index aa90367..65e23a9 100644 --- a/src/leap/common/testing/basetest.py +++ b/src/leap/common/testing/basetest.py @@ -41,8 +41,10 @@ class BaseLeapTest(unittest.TestCase): @classmethod def setUpClass(cls): """ - sets up common facilities - for testing this TestCase + Sets up common facilities for testing this TestCase: + - custom PATH and HOME environmental variables + - creates a temporal folder to which those point. + It saves the old path and home vars so they can be restored later. """ cls.old_path = os.environ['PATH'] cls.old_home = os.environ['HOME'] @@ -57,8 +59,9 @@ class BaseLeapTest(unittest.TestCase): @classmethod def tearDownClass(cls): """ - cleanup common facilities used - for testing this TestCase + Cleanup common facilities used for testing this TestCase: + - restores the default PATH and HOME variables + - removes the temporal folder """ os.environ["PATH"] = cls.old_path os.environ["HOME"] = cls.old_home |