add test for directory module
This commit is contained in:
@@ -8,6 +8,7 @@ EXTRA_DIST = \
|
||||
test_common_checksum.py \
|
||||
test_common_common.py \
|
||||
test_common_config.py \
|
||||
test_common_directory.py \
|
||||
test_common_drive.py \
|
||||
test_common_encode.py \
|
||||
test_common_gstreamer.py \
|
||||
|
||||
21
morituri/test/test_common_directory.py
Normal file
21
morituri/test/test_common_directory.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- Mode: Python; test-case-name: morituri.test.test_common_directory -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
from morituri.common import directory
|
||||
|
||||
from morituri.test import common
|
||||
|
||||
|
||||
class DirectoryTestCase(common.TestCase):
|
||||
|
||||
def testAll(self):
|
||||
d = directory.Directory()
|
||||
|
||||
path = d.getConfig()
|
||||
self.failUnless(path.startswith('/home'))
|
||||
|
||||
path = d.getCache()
|
||||
self.failUnless(path.startswith('/home'))
|
||||
|
||||
paths = d.getReadCaches()
|
||||
self.failUnless(paths[0].startswith('/home'))
|
||||
Reference in New Issue
Block a user