'Test for download \'en\' sub with html5 video and self.sub has correct non-empty value.'

def test_good_transcript(self):

    good_sjson = _create_file(content=textwrap.dedent('                                                                {\n                                                                        "start":    [\n                                                                                270,\n                                                                                2720\n                                                                        ],\n                                                                        "end":    [\n                                                                                2720,\n                                                                                5430\n                                                                        ],\n                                                                        "text":    [\n                                                                                "Hi,    welcome    to    Edx.",\n                                                                                "Let&#39;s    start    with    what    is    on    your    screen    right    now."\n                                                                        ]\n                                                                }\n                                                '))
    _upload_sjson_file(good_sjson, self.item.location)
    self.item.sub = _get_subs_id(good_sjson.name)
    transcripts = self.item.get_transcripts_info()
    (text, filename, mime_type) = self.item.get_transcript(transcripts)
    expected_text = textwrap.dedent('                                                0\n                                                00:00:00,270    -->    00:00:02,720\n                                                Hi,    welcome    to    Edx.\n\n                                                1\n                                                00:00:02,720    -->    00:00:05,430\n                                                Let&#39;s    start    with    what    is    on    your    screen    right    now.\n\n                                                ')
    self.assertEqual(text, expected_text)
    self.assertEqual(filename[:(-4)], self.item.sub)
    self.assertEqual(mime_type, 'application/x-subrip;    charset=utf-8')
