1
0
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:
Tim Graham
2018-05-12 12:38:53 -04:00
parent 305dee7bf9
commit 1b7d524cfa
4 changed files with 15 additions and 25 deletions

View File

@@ -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')