'Scenario: User cannot select the same language twice
Given I have created a Video component
And I edit the component
And I open tab "Advanced"
And I click button "Add"
And I choose "zh" language code
And I click button "Add"
Then I cannot choose "zh" language code'

def test_select_language_twice(self):

    self._create_video_component()
    self.edit_component()
    self.open_advanced_tab()
    self.video.click_button('translation_add')
    self.video.select_translation_language('zh')
    self.video.click_button('translation_add')
    self.video.select_translation_language('zh')
    self.assertEqual(self.video.translations(), [u'zh', u''])
