def testAll(self): path = directory.config_path() self.failUnless(path.startswith('/home')) path = directory.cache_path() self.failUnless(path.startswith('/home'))
def __init__(self, path=None): self._path = path or directory.config_path() self._parser = ConfigParser.SafeConfigParser() self.open()