mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Consolidated duplicate to_locale() implementations.
Follow up to ac59ec8f1a.
This commit is contained in:
@@ -286,7 +286,6 @@ 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