diff --git a/whipper/test/test_common_directory.py b/whipper/test/test_common_directory.py index c5a9dcf..4290489 100644 --- a/whipper/test/test_common_directory.py +++ b/whipper/test/test_common_directory.py @@ -1,16 +1,18 @@ # -*- Mode: Python; test-case-name: whipper.test.test_common_directory -*- # vi:si:et:sw=4:sts=4:ts=4 +from os.path import dirname, expanduser from whipper.common import directory - from whipper.test import common class DirectoryTestCase(common.TestCase): + HOME = expanduser('~') + HOME_PARENT = dirname(HOME) def testAll(self): path = directory.config_path() - self.failUnless(path.startswith('/home')) + self.failUnless(path.startswith(DirectoryTestCase.HOME_PARENT)) path = directory.cache_path() - self.failUnless(path.startswith('/home')) + self.failUnless(path.startswith(DirectoryTestCase.HOME_PARENT))