]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Unittest locale_identifiers() and exists() bijection. 351/head
authorKevin Deldycke <kdeldycke@scaleway.com>
Wed, 17 Feb 2016 15:30:56 +0000 (16:30 +0100)
committerKevin Deldycke <kdeldycke@scaleway.com>
Wed, 17 Feb 2016 15:30:56 +0000 (16:30 +0100)
tests/test_localedata.py

index 17ecd6392c02dbfdf4eb431cdc7dce3f7c2be8c0..80dd118c4356190272093d0fba2333d38146de97 100644 (file)
@@ -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)