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