Fix failing unittest in systemd-nspawn
Fixes #157 Only test_common_directory.py is changed because the other unittest is working as expected (the failure isn't related to whipper).
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user