def get_tracer_and_client(self): tracer = get_dummy_tracer() original_client = pymongo.MongoClient(port=MONGO_CONFIG['port']) client = trace_mongo_client(original_client, tracer, service=self.TEST_SERVICE) return tracer, client