From 0bf8cb7711427aa69ef7c9834066eab43d18e460 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Wed, 17 Feb 2016 16:30:56 +0100 Subject: [PATCH] Unittest locale_identifiers() and exists() bijection. --- tests/test_localedata.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.47.2