'Test that the article is showing in the header locale
Test cases when the document is not localized to locale requested by the user,
but is localized to a locale mentioned in the ACCEPT_LANGUAGE header'

def test_header_locales_in_translated_list(self):

    header = 'es,fr;q=0.7,ja;q=0.3,'
    doc_content = self.get_data_from_translated_document(header=header, create_doc_locale='fr', req_doc_locale='es')
    en_content = 'This    article    is    in    English'
    trans_content = 'This    article    is    translated    into    fr'
    assert (en_content not in doc_content)
    assert (trans_content in doc_content)
