diff --git a/lms/djangoapps/courseware/tests/test_video_xml.py b/lms/djangoapps/courseware/tests/test_video_xml.py index aa36d5be89..57282ed39a 100644 --- a/lms/djangoapps/courseware/tests/test_video_xml.py +++ b/lms/djangoapps/courseware/tests/test_video_xml.py @@ -92,45 +92,3 @@ class VideoModuleLogicTest(LogicTest): '1.00': '', '1.25': '', '1.50': ''}) - - -class VideoModuleUnitTest(unittest.TestCase): - """Unit tests for Video Xmodule.""" - - def test_video_constructor(self): - """Make sure that all parameters extracted correclty from xml""" - module = VideoFactory.create() - - # `get_html` return only context, cause we - # overwrite `system.render_template` - context = module.get_html() - expected_context = { - 'track': None, - 'show_captions': 'true', - 'display_name': 'SampleProblem1', - 'id': module.location.html_id(), - 'end': 3610.0, - 'caption_asset_path': '/static/subs/', - 'source': '.../mit-3091x/M-3091X-FA12-L21-3_100.mp4', - 'streams': '0.75:jNCf2gIqpeE,1.0:ZwkTiUPN0mg,1.25:rsq9auxASqI,1.50:kMyNdzVHHgg', - 'normal_speed_video_id': 'ZwkTiUPN0mg', - 'position': 0, - 'start': 3603.0 - } - self.assertDictEqual(context, expected_context) - - self.assertEqual( - module.youtube, - '0.75:jNCf2gIqpeE,1.0:ZwkTiUPN0mg,1.25:rsq9auxASqI,1.50:kMyNdzVHHgg') - - self.assertEqual( - module.video_list(), - module.youtube) - - self.assertEqual( - module.position, - 0) - - self.assertDictEqual( - json.loads(module.get_instance_state()), - {'position': 0})