diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2013-07-28 23:13:21 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2013-07-28 23:13:21 +0200 |
commit | 4117268d15375da88cbe86da873133c67493a982 (patch) | |
tree | aadb07b63b2f12d298f0196e0612b7b0bb1faaeb /tests | |
parent | e38b777613b1dfdff0fa6f2433d16ca5e7e1b718 (diff) | |
download | babel-4117268d15375da88cbe86da873133c67493a982.tar.gz |
Fixed #37 (likely subtag resolving)
This fixes some locales not loading correctly (like zh_CN) that
are defined through simplified rules in the likely-subtag mapping.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_core.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index ccc30fa..1605159 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -97,6 +97,11 @@ class TestLocaleClass: assert l.territory == 'TW' assert l.script == 'Hant' + l = Locale.parse('zh_CN') + assert l.language == 'zh' + assert l.territory == 'CN' + assert l.script == 'Hans' + l = Locale.parse('und_AT') assert l.language == 'de' assert l.territory == 'AT' |