def setup(self): self.key = "key" self.value = "value" self.dbfd, self.dbpath = mkstemp( prefix='cloudmesh.db.strdb.TestYamlDB.' ) self.db = YamlDB(path=self.dbpath)
def __init__(self, filename=None): """ initializes the default variables. The default file is in "~/.cloudmesh/default-data" :param filename: """ if filename is None: self.filename = Path(path_expand("~/.cloudmesh/default-data")) self.data = YamlDB(str(self.filename))
def __init__(self, filename=None): self.filename = path_expand(filename or "~/.cloudmesh/var-data") self.data = YamlDB(self.filename)
def __init__(self, filename=None): if filename is None: self.filename = Path(path_expand("~/.cloudmesh/default-data")) self.data = YamlDB(str(self.filename))
def setUp(self): self.dbfd, self.dbpath = mkstemp( prefix='cloudmesh.db.strdb.TestYamlDB.') self.db = YamlDB(path=self.dbpath)