'Ensure that attributes have the right values if they aren\'t
explicitly set in XML.'

def test_from_xml_missing_attributes(self):

    module_system = DummySystem(load_error_modules=True)
    xml_data = '\n                                                <video    display_name="Test    Video"\n                                                                            youtube="1.0:p2Q6BrNhdh8,1.25:1EeWXzPdhSA"\n                                                                            show_captions="true">\n                                                        <source    src="http://www.example.com/source.mp4"/>\n                                                </video>\n                                '
    output = VideoDescriptor.from_xml(xml_data, module_system, Mock())
    self.assert_attributes_equal(output, {'youtube_id_0_75': '', 'youtube_id_1_0': 'p2Q6BrNhdh8', 'youtube_id_1_25': '1EeWXzPdhSA', 'youtube_id_1_5': '', 'show_captions': True, 'start_time': datetime.timedelta(seconds=0.0), 'end_time': datetime.timedelta(seconds=0.0), 'track': '', 'handout': None, 'download_track': False, 'download_video': True, 'html5_sources': ['http://www.example.com/source.mp4'], 'data': ''})
