def teardown(self, dbname): path = self.databases[dbname]['file'] db = self.databases[dbname]['db'] db.close() Database.drop(path)