'Scenario: YouTube stub server proxies YouTube API correctly
Given youtube stub server proxies YouTube API
And I have created a Video component
Then I can see video button "play"
And I click video button "play"
Then I can see video button "pause"'

def test_youtube_stub_proxy(self):

    self._create_course_unit(youtube_stub_config={'youtube_api_blocked': False})
    self.assertTrue(self.video.is_button_shown('play'))
    self.video.click_player_button('play')
    self.video.wait_for_state('playing')
    self.assertTrue(self.video.is_button_shown('pause'))
