'Scenario: Video component is fully rendered in the LMS in HTML5 mode
Given the course has a Video component in "HTML5" mode
Then the video has rendered in "HTML5" mode
And video sources are correct'

def test_video_rendering(self):

    self.metadata = self.metadata_for_mode('html5')
    self.navigate_to_video()
    self.assertTrue(self.video.is_video_rendered('html5'))
    self.assertTrue(all([(source in HTML5_SOURCES) for source in self.video.sources]))
