mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Aliased trans_null.to_locale() to trans_real.to_locale().
The implementations have unintentionally diverged.
This commit is contained in:
committed by
Tim Graham
parent
a5a2ceeb45
commit
ac59ec8f1a
@@ -286,6 +286,7 @@ class TranslationTests(SimpleTestCase):
|
||||
for lang, locale in tests:
|
||||
with self.subTest(lang=lang):
|
||||
self.assertEqual(to_locale(lang), locale)
|
||||
self.assertEqual(trans_null.to_locale(lang), locale)
|
||||
|
||||
def test_to_language(self):
|
||||
self.assertEqual(trans_real.to_language('en_US'), 'en-us')
|
||||
|
||||
Reference in New Issue
Block a user