'Download transcript using transcript name in url'

@patch('xmodule.video_module.transcripts_utils.requests.get', side_effect=mock_requests_get)
def test_downloading_subs_using_transcript_name(self, mock_get):

    good_youtube_sub = 'good_id_2'
    self.clear_sub_content(good_youtube_sub)
    transcripts_utils.download_youtube_subs(good_youtube_sub, self.course, settings)
    mock_get.assert_any_call('http://video.google.com/timedtext', params={'lang': 'en', 'v': 'good_id_2', 'name': 'Custom'})
    filename = 'subs_{0}.srt.sjson'.format(good_youtube_sub)
    content_location = StaticContent.compute_location(self.course.id, filename)
    self.assertTrue(contentstore().find(content_location))
    self.clear_sub_content(good_youtube_sub)
