'Verify that image is uploaded successfully.
Arguments:
course_id: ID of course
edx_video_id: ID of video
upload_response: Upload response object
Returns:
uploaded image url'

def verify_image_upload_reponse(self, course_id, edx_video_id, upload_response):

    self.assertEqual(upload_response.status_code, 200)
    response = json.loads(upload_response.content)
    val_image_url = get_course_video_image_url(course_id=course_id, edx_video_id=edx_video_id)
    self.assertEqual(response['image_url'], val_image_url)
    return val_image_url
