def get_image(image_id): result = Image.get_by_id(es, image_id) return jsonify(result)
def test_get_by_id(self): assert (Image.get_by_id(es, self.test_id, index=self.index_name)['_id'] == self.test_id)