diff options
author | Michael Howitz <mh@gocept.com> | 2021-09-06 08:11:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 08:11:11 +0200 |
commit | 53141afa75f6cdf0c75e2496d697313820a03039 (patch) | |
tree | 9084f1a2994c8c9a6e592a433c4d6f66b2de5b51 /src/zope/i18n/locales/tests/test_xmlfactory.py | |
parent | 59d212f62d20f9bad168a0dcb8bb137bd625130b (diff) | |
parent | 51480fc597fa04b2a044b873605cb114efacf9f6 (diff) | |
download | zope-i18n-53141afa75f6cdf0c75e2496d697313820a03039.tar.gz |
Merge pull request #49 from zopefoundation/config-with-pure-python-autopep8
Config with pure python
Diffstat (limited to 'src/zope/i18n/locales/tests/test_xmlfactory.py')
-rw-r--r-- | src/zope/i18n/locales/tests/test_xmlfactory.py | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/zope/i18n/locales/tests/test_xmlfactory.py b/src/zope/i18n/locales/tests/test_xmlfactory.py index 792c96d..e11097c 100644 --- a/src/zope/i18n/locales/tests/test_xmlfactory.py +++ b/src/zope/i18n/locales/tests/test_xmlfactory.py @@ -19,6 +19,7 @@ from unittest import TestCase, TestSuite from zope.i18n.locales.xmlfactory import LocaleFactory import zope.i18n + class LocaleXMLFileTestCase(TestCase): """This test verifies that every locale XML file can be loaded.""" @@ -33,20 +34,24 @@ class LocaleXMLFileTestCase(TestCase): # XXX: The tests below are commented out because it's not # necessary for the xml files to have all format definitions. - ## Making sure all number format patterns parse - #for category in (u'decimal', u'scientific', u'percent', u'currency'): - # for length in getattr(locale.numbers, category+'Formats').values(): + # Making sure all number format patterns parse + # for category in (u'decimal', u'scientific', u'percent', u'currency'): + # for length in getattr( + # locale.numbers, category + 'Formats' + # ).values(): # for format in length.formats.values(): - # self.assert_(parseNumberPattern(format.pattern) is not None) - - ## Making sure all datetime patterns parse - #for calendar in locale.dates.calendars.values(): - # for category in ('date', 'time', 'dateTime'): - # for length in getattr(calendar, category+'Formats').values(): - # for format in length.formats.values(): - # self.assert_( - # parseDateTimePattern(format.pattern) is not None) + # self.assertIsNotNone(parseNumberPattern(format.pattern) + # Making sure all datetime patterns parse + # for calendar in locale.dates.calendars.values(): + # for category in ('date', 'time', 'dateTime'): + # for length in getattr( + # calendar, category + 'Formats' + # ).values(): + # for format in length.formats.values(): + # self.assertIsNotNone( + # parseDateTimePattern(format.pattern) + # ) def test_suite(): |