'Check if the JavaScript i18n view returns a complete language catalog
if the default language is en-us, the selected language has a
translation available and a catalog composed by djangojs domain
translations of multiple Python packages is requested. See #13388,
#3594 and #13514 for more details.'

def testI18NLanguageEnglishDefault(self):

    extended_apps = (list(settings.INSTALLED_APPS) + ['view_tests.app1', 'view_tests.app2'])
    with self.settings(LANGUAGE_CODE='en-us', INSTALLED_APPS=extended_apps):
        with override('fr'):
            response = self.client.get('/views/jsi18n_multi_packages1/')
            self.assertContains(response, javascript_quote('il    faut    traduire    cette    cha\xc3\xaene    de    caract\xc3\xa8res    de    app1'))
