'Scenario: Video is rendered in HTML5 mode when the YouTube API is blocked
Given the YouTube API is blocked
And the course has a Video component in "Youtube_HTML5" mode
Then the video has rendered in "HTML5" mode
And only one video has rendered'

def test_video_with_youtube_blocked_with_default_response_time(self):

    self.youtube_configuration.update({'youtube_api_blocked': True})
    self.metadata = self.metadata_for_mode('youtube_html5')
    self.navigate_to_video()
    self.assertTrue(self.video.is_video_rendered('html5'))
    self.assertEqual(len(self.video.q(css='video')), 1)
