summaryrefslogtreecommitdiff
path: root/tests/i18n/test_extraction.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/i18n/test_extraction.py')
-rw-r--r--tests/i18n/test_extraction.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index 7aa600c4c1..e4a6260c33 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -179,6 +179,15 @@ class BasicExtractorTests(ExtractorTests):
self.assertIn("processing locale en_GB", out.getvalue())
self.assertIs(Path("locale/en_GB/LC_MESSAGES/django.po").exists(), True)
+ def test_valid_locale_with_numeric_region_code(self):
+ out = StringIO()
+ management.call_command(
+ "makemessages", locale=["ar_002"], stdout=out, verbosity=1
+ )
+ self.assertNotIn("invalid locale ar_002", out.getvalue())
+ self.assertIn("processing locale ar_002", out.getvalue())
+ self.assertIs(Path("locale/ar_002/LC_MESSAGES/django.po").exists(), True)
+
def test_valid_locale_tachelhit_latin_morocco(self):
out = StringIO()
management.call_command(