def tearDown(self): self.prepare_client() mongo = fmtasks.get_db_collection() mongo.delete_many({})
def setUp(self): self.prepare_client() mongo = fmtasks.get_db_collection() if mongo.count(): raise Exception("Test database is not empty.")