'Download the transcript in format `transcript_format` and check that it contains the text `text_to_search`
Arguments:
transcript_format (str): Transcript file format `srt` or `txt`
text_to_search (str): Text to search in Transcript.
Returns:
bool: Transcript download result.'

def downloaded_transcript_contains_text(self, transcript_format, text_to_search):

    transcript_selector = self.get_element_selector(VIDEO_MENUS['transcript-format'][transcript_format])
    if (('.' + transcript_format) not in self.q(css=transcript_selector).text[0]):
        return False
    formats = {'srt': 'application/x-subrip', 'txt': 'text/plain'}
    link = self.q(css=transcript_selector)
    url = link.attrs('href')[0]
    link.click()
    (result, headers, content) = self._get_transcript(url)
    if (result is False):
        return False
    if (text_to_search not in content.decode('utf-8')):
        return False
    return True
