'Tests the VideoModule get_html where a edx_video_id is given but a video is not found'

def test_get_html_with_non_existent_edx_video_id(self):

    SOURCE_XML = '\n                                                <video    show_captions="true"\n                                                display_name="A    Name"\n                                                sub="a_sub_file.srt.sjson"    source="{source}"\n                                                download_video="{download_video}"\n                                                start_time="01:00:03"    end_time="01:00:10"\n                                                edx_video_id="{edx_video_id}"\n                                                >\n                                                                {sources}\n                                                </video>\n                                '
    no_video_data = {'download_video': 'true', 'source': 'example_source.mp4', 'sources': '\n                                                <source    src="example.mp4"/>\n                                                <source    src="example.webm"/>\n                                                ', 'edx_video_id': 'meow', 'result': {'download_video_link': u'example_source.mp4', 'sources': [u'example.mp4', u'example.webm']}}
    DATA = SOURCE_XML.format(download_video=no_video_data['download_video'], source=no_video_data['source'], sources=no_video_data['sources'], edx_video_id=no_video_data['edx_video_id'])
    self.initialize_module(data=DATA)
    self.assertIn('example_source.mp4', self.item_descriptor.render(STUDENT_VIEW).content)
