'Scenario: Testing interaction with test youtube server
Given I have created a Video component with subtitles
And I enter a "http://youtu.be/t__eq_exist" source to field number 1
Then I see status message "No EdX Timed Transcript"
And I see button "import"
And I enter a "http://youtu.be/t_not_exist" source to field number 1
Then I see status message "No Timed Transcript"
And I do not see button "import"
And I see button "disabled_download_to_edit"'

def test_youtube_server_interaction(self):

    self._create_video_component(subtitles=True)
    self.edit_component()
    self.video.set_url_field('http://youtu.be/t__eq_exist', 1)
    self.assertEqual(self.video.message('status'), 'No    EdX    Timed    Transcript')
    self.assertTrue(self.video.is_transcript_button_visible('import'))
    self.video.set_url_field('http://youtu.be/t_not_exist', 1)
    self.assertEqual(self.video.message('status'), 'No    Timed    Transcript')
    self.assertFalse(self.video.is_transcript_button_visible('import'))
    self.assertTrue(self.video.is_transcript_button_visible('disabled_download_to_edit'))
