summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2021-03-22 06:54:26 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-22 06:58:44 +0100
commit9d130920e61570d1e8dfd8ee174bc5d86771f054 (patch)
tree57395a40e573b6dc4de0822381bb5076656ff59d /tests
parent41e6b2a3c5e723256506b9ff49437d52a1f3bf43 (diff)
Added to_locale() tests for 3-char language codes.
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/tests.py3
1 files changed, 3 insertions, 0 deletions
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'),