'Test get_context.
This test is located here and not in xmodule.tests because get_context calls editable_metadata_fields.
Which, in turn, uses settings.LANGUAGES from django setttings.'

def test_get_context(self):

    correct_tabs = [{'name': 'Basic', 'template': 'video/transcripts.html', 'current': True}, {'name': 'Advanced', 'template': 'tabs/metadata-edit-tab.html'}]
    rendered_context = self.descriptor.get_context()
    self.assertListEqual(rendered_context['tabs'], correct_tabs)
    self.assertEqual(rendered_context['transcripts_basic_tab_metadata']['edx_video_id'], self.descriptor.editable_metadata_fields['edx_video_id'])
