'Scenario: HLS video is rendered when the YouTube API is blocked
Given the YouTube API is blocked
And the course has a Video component with Youtube, HTML5 and HLS sources available
Then the HLS video is rendered'

def test_hls_video_with_youtube_blocked(self):

    self.youtube_configuration.update({'youtube_api_blocked': True})
    self.metadata = self.metadata_for_mode('html5_and_hls', additional_data={'youtube_id_1_0': 'b7xgknqkQk8'})
    self.navigate_to_video()
    self.assertTrue(self.video.is_video_rendered('hls'))
