def get_sources_handle(): # this can be safely called by forked process mongo_client = mutil.get_mongo_client() collection_handle = mongo_client['SourceCollection'] return collection_handle
def get_submission_queue_handle( ): # this can be safely called by forked process mongo_client = mutil.get_mongo_client() collection_handle = mongo_client['SubmissionQueueCollection'] return collection_handle
def get_description_handle(): # this can be safely called by forked process mongo_client = mutil.get_mongo_client() collection_handle = mongo_client['DescriptionCollection'] return collection_handle
def tearDown(self): db = get_mongo_client() db.drop_database('copo_mongo_test')