From de1cc5864e652b7d06eda4f15143cd57d074180a Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 15 Mar 2013 03:51:30 +0900 Subject: misc fixes (spacing, capitalization) --- src/leap/common/testing/basetest.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/leap/common/testing/basetest.py') 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 -- cgit v1.2.3