refactor morituri.common.directory to shed Directory() and bulk

This commit is contained in:
Samantha Baldwin
2016-11-02 17:52:14 -04:00
parent 1e0176553b
commit bccba71b42
6 changed files with 32 additions and 70 deletions

View File

@@ -9,10 +9,8 @@ from morituri.test import common
class DirectoryTestCase(common.TestCase):
def testAll(self):
d = directory.Directory()
path = d.getConfig()
path = directory.config_path()
self.failUnless(path.startswith('/home'))
path = d.getCache()
path = directory.cache_path()
self.failUnless(path.startswith('/home'))