def test_get_dbname_filename_database(self):
    name = 'jcea-random-name'
    self.db.open(self.path, dbname=name, dbtype=db.DB_HASH, flags=db.DB_CREATE)
    self.assertEqual((self.path, name), self.db.get_dbname())
def test_get_dbname_filename_database(self):
    name = 'jcea-random-name'
    self.db.open(self.path, dbname=name, dbtype=db.DB_HASH, flags=db.DB_CREATE)
    self.assertEqual((self.path, name), self.db.get_dbname())