From: Kevin Deldycke Date: Wed, 17 Feb 2016 15:30:56 +0000 (+0100) Subject: Unittest locale_identifiers() and exists() bijection. X-Git-Tag: 2.3.1~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf8cb7711427aa69ef7c9834066eab43d18e460;p=thirdparty%2Fbabel.git Unittest locale_identifiers() and exists() bijection. --- diff --git a/tests/test_localedata.py b/tests/test_localedata.py index 17ecd639..80dd118c 100644 --- a/tests/test_localedata.py +++ b/tests/test_localedata.py @@ -72,3 +72,7 @@ def test_merge(): d = {1: 'foo', 3: 'baz'} localedata.merge(d, {1: 'Foo', 2: 'Bar'}) assert d == {1: 'Foo', 2: 'Bar', 3: 'baz'} + +def test_locale_identification(): + for l in localedata.locale_identifiers(): + assert localedata.exists(l)