'Test that the article is showing in the header locale, with the following conditions:
* the article is not localized into the user-requested locale
* the article is not localized to any of the locales listed in the ACCEPT_LANGUAGE header
* there is a fallback locale defined for one of the locales listed in the the
ACCEPT LANGUAGE header
** it is set in kitsune/settings.py
Test that the fallback locale is used'

def test_header_locales_not_in_translated_list(self):

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