summaryrefslogtreecommitdiff
path: root/src/zope/i18n/locales/tests
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-12-16 11:09:37 -0600
committerJason Madden <jamadden@gmail.com>2017-12-16 11:09:37 -0600
commitb43a9b5abbb772c58a8b28b38802d0baac90a000 (patch)
tree5523b7f5ad590572ffdd5f1ca03d8951ce6d4f00 /src/zope/i18n/locales/tests
parent4b63e96e9367f2a03dde559ebb51e90c436de3ec (diff)
downloadzope-i18n-b43a9b5abbb772c58a8b28b38802d0baac90a000.tar.gz
100% coverage for provider.py
Diffstat (limited to 'src/zope/i18n/locales/tests')
-rw-r--r--src/zope/i18n/locales/tests/test_locales.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zope/i18n/locales/tests/test_locales.py b/src/zope/i18n/locales/tests/test_locales.py
index 97b8fe3..2b100b8 100644
--- a/src/zope/i18n/locales/tests/test_locales.py
+++ b/src/zope/i18n/locales/tests/test_locales.py
@@ -59,7 +59,7 @@ class AbstractTestILocaleProviderMixin(object):
self.assertEqual(locale.id.variant, 'POSIX')
-class TestLocaleProvider(AbstractTestILocaleProvider, TestCase):
+class TestLocaleProvider(AbstractTestILocaleProviderMixin, TestCase):
def _makeNewProvider(self):
return LocaleProvider(datadir)
@@ -75,6 +75,10 @@ class TestLocaleProvider(AbstractTestILocaleProvider, TestCase):
def test_loadLocaleFailure(self):
self.assertRaises(LoadLocaleError, self.locales.loadLocale, 'zzz')
+ def test_compute_filename_with_variant_no_country(self):
+ filename = self.locales._compute_filename('en', None, 'variant')
+ self.assertEqual('en__variant.xml', filename)
+
class TestLocaleAndProvider(TestCase):