'Test video image is saved.'

@override_switch(VIDEO_IMAGE_UPLOAD_ENABLED, True)
def test_video_image(self):

    edx_video_id = 'test1'
    video_image_upload_url = self.get_url_for_course_key(self.course.id, {'edx_video_id': edx_video_id})
    with make_image_file(dimensions=(settings.VIDEO_IMAGE_MIN_WIDTH, settings.VIDEO_IMAGE_MIN_HEIGHT)) as image_file:
        response = self.client.post(video_image_upload_url, {'file': image_file}, format='multipart')
        image_url1 = self.verify_image_upload_reponse(self.course.id, edx_video_id, response)
    with make_image_file(dimensions=(settings.VIDEO_IMAGE_MIN_WIDTH, settings.VIDEO_IMAGE_MIN_HEIGHT)) as image_file:
        response = self.client.post(video_image_upload_url, {'file': image_file}, format='multipart')
        image_url2 = self.verify_image_upload_reponse(self.course.id, edx_video_id, response)
    self.assertNotEqual(image_url1, image_url2)
