Fixed typos in test names.

This commit is contained in:
Daniel Hahler 2019-04-27 07:47:42 +02:00 committed by Mariusz Felisiak
parent ed3c59097a
commit 08a4ee0651
2 changed files with 2 additions and 2 deletions

View File

@ -1801,7 +1801,7 @@ class NonDjangoLanguageTests(SimpleTestCase):
self.assertEqual(gettext("year"), "reay")
@override_settings(USE_I18N=True)
def test_check_for_langauge(self):
def test_check_for_language(self):
with tempfile.TemporaryDirectory() as app_dir:
os.makedirs(os.path.join(app_dir, 'locale', 'dummy_Lang', 'LC_MESSAGES'))
open(os.path.join(app_dir, 'locale', 'dummy_Lang', 'LC_MESSAGES', 'django.mo'), 'w').close()

View File

@ -157,7 +157,7 @@ class SetLanguageTests(TestCase):
self.assertEqual(response.url, '/')
self.assertEqual(self.client.cookies[settings.LANGUAGE_COOKIE_NAME].value, lang_code)
def test_session_langauge_deprecation(self):
def test_session_language_deprecation(self):
msg = (
'The user language will no longer be stored in request.session '
'in Django 4.0. Read it from '