'Make sure we can handle the double-quoted string format (which was used for exporting for
a few weeks).'

def test_from_xml_double_quotes(self):

    module_system = DummySystem(load_error_modules=True)
    xml_data = '\n                                                <video    display_name="&quot;display_name&quot;"\n                                                                html5_sources="[&quot;source_1&quot;,    &quot;source_2&quot;]"\n                                                                show_captions="false"\n                                                                download_video="true"\n                                                                sub="&quot;html5_subtitles&quot;"\n                                                                track="&quot;http://www.example.com/track&quot;"\n                                                                handout="&quot;http://www.example.com/handout&quot;"\n                                                                download_track="true"\n                                                                youtube_id_0_75="&quot;OEoXaMPEzf65&quot;"\n                                                                youtube_id_1_25="&quot;OEoXaMPEzf125&quot;"\n                                                                youtube_id_1_5="&quot;OEoXaMPEzf15&quot;"\n                                                                youtube_id_1_0="&quot;OEoXaMPEzf10&quot;"\n                                                                />\n                                '
    output = VideoDescriptor.from_xml(xml_data, module_system, Mock())
    self.assert_attributes_equal(output, {'youtube_id_0_75': 'OEoXaMPEzf65', 'youtube_id_1_0': 'OEoXaMPEzf10', 'youtube_id_1_25': 'OEoXaMPEzf125', 'youtube_id_1_5': 'OEoXaMPEzf15', 'show_captions': False, 'start_time': datetime.timedelta(seconds=0.0), 'end_time': datetime.timedelta(seconds=0.0), 'track': 'http://www.example.com/track', 'handout': 'http://www.example.com/handout', 'download_track': True, 'download_video': True, 'html5_sources': ['source_1', 'source_2'], 'data': ''})
