'Ensure that Video is able to read VideoModule\'s model data.'

def test_old_video_data(self):

    module_system = DummySystem(load_error_modules=True)
    xml_data = '\n                                                <video    display_name="Test    Video"\n                                                                            youtube="1.0:p2Q6BrNhdh8,0.75:izygArpw-Qo,1.25:1EeWXzPdhSA,1.5:rABDYkeK0x8"\n                                                                            show_captions="false"\n                                                                            from="00:00:01"\n                                                                            to="00:01:00">\n                                                        <source    src="http://www.example.com/source.mp4"/>\n                                                        <track    src="http://www.example.com/track"/>\n                                                </video>\n                                '
    video = VideoDescriptor.from_xml(xml_data, module_system, Mock())
    self.assert_attributes_equal(video, {'youtube_id_0_75': 'izygArpw-Qo', 'youtube_id_1_0': 'p2Q6BrNhdh8', 'youtube_id_1_25': '1EeWXzPdhSA', 'youtube_id_1_5': 'rABDYkeK0x8', 'show_captions': False, 'start_time': datetime.timedelta(seconds=1), 'end_time': datetime.timedelta(seconds=60), 'track': 'http://www.example.com/track', 'html5_sources': ['http://www.example.com/source.mp4'], 'data': ''})
