diff options
author | kali <kali@leap.se> | 2012-09-06 04:17:00 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-06 04:17:00 +0900 |
commit | 275c7c20ec08283b50dce0aa753f48ada2ffe2c7 (patch) | |
tree | 87dc609ada390bb54ff1b793bfd2d227c1814a8d /src/leap/testing/basetest.py | |
parent | 75f4128f5ed515c4df57275bf1479ccdf741c83f (diff) |
safety check in base test removal
Diffstat (limited to 'src/leap/testing/basetest.py')
-rw-r--r-- | src/leap/testing/basetest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/testing/basetest.py b/src/leap/testing/basetest.py index 881f56c9..3186e1eb 100644 --- a/src/leap/testing/basetest.py +++ b/src/leap/testing/basetest.py @@ -34,6 +34,8 @@ class BaseLeapTest(unittest.TestCase): def tearDownClass(cls): os.environ["PATH"] = cls.old_path os.environ["HOME"] = cls.old_home + # safety check + assert cls.tempdir.startswith('/tmp/leap_tests-') shutil.rmtree(cls.tempdir) # you have to override these methods |