diff options
Diffstat (limited to 'tests/i18n/contenttypes/tests.py')
| -rw-r--r-- | tests/i18n/contenttypes/tests.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/i18n/contenttypes/tests.py b/tests/i18n/contenttypes/tests.py index d23e2bdf56..22bbb5d834 100644 --- a/tests/i18n/contenttypes/tests.py +++ b/tests/i18n/contenttypes/tests.py @@ -8,18 +8,18 @@ from django.utils import translation @override_settings( USE_I18N=True, LOCALE_PATHS=[ - os.path.join(os.path.dirname(__file__), 'locale'), + os.path.join(os.path.dirname(__file__), "locale"), ], - LANGUAGE_CODE='en', + LANGUAGE_CODE="en", LANGUAGES=[ - ('en', 'English'), - ('fr', 'French'), + ("en", "English"), + ("fr", "French"), ], ) class ContentTypeTests(TestCase): def test_verbose_name(self): - company_type = ContentType.objects.get(app_label='i18n', model='company') - with translation.override('en'): - self.assertEqual(str(company_type), 'i18n | Company') - with translation.override('fr'): - self.assertEqual(str(company_type), 'i18n | Société') + company_type = ContentType.objects.get(app_label="i18n", model="company") + with translation.override("en"): + self.assertEqual(str(company_type), "i18n | Company") + with translation.override("fr"): + self.assertEqual(str(company_type), "i18n | Société") |
