def tearDown(self): db = Db(DB_PATH) db._destroy() self.assertTrue(not os.path.exists(DB_PATH), "Database failed to destroy tmp db %s" % DB_PATH)