'Verify that poster image functionality works as expected.'

@patch('xmodule.video_module.video_module.edxval_api.get_course_video_image_url')
def test_poster_image(self, get_course_video_image_url):

    video_xml = '<video    display_name="Video"    download_video="true"    edx_video_id="12345-67890">[]</video>'
    get_course_video_image_url.return_value = '/media/video-images/poster.png'
    self.initialize_module(data=video_xml)
    context = self.item_descriptor.render(STUDENT_VIEW).content
    self.assertIn('"poster":    "/media/video-images/poster.png"', context)
