From 9d130920e61570d1e8dfd8ee174bc5d86771f054 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 22 Mar 2021 06:54:26 +0100 Subject: [PATCH] Added to_locale() tests for 3-char language codes. --- tests/i18n/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 315af09e62..55cd35f7f3 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -316,6 +316,9 @@ class TranslationTests(SimpleTestCase): # With > 2 characters after the dash. ('sr-latn', 'sr_Latn'), ('sr-LATN', 'sr_Latn'), + # 3-char language codes. + ('ber-MA', 'ber_MA'), + ('BER-MA', 'ber_MA'), # With private use subtag (x-informal). ('nl-nl-x-informal', 'nl_NL-x-informal'), ('NL-NL-X-INFORMAL', 'nl_NL-x-informal'),