summaryrefslogtreecommitdiff
path: root/src/zope/i18n/locales/tests/test_xmlfactory.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/i18n/locales/tests/test_xmlfactory.py')
-rw-r--r--src/zope/i18n/locales/tests/test_xmlfactory.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zope/i18n/locales/tests/test_xmlfactory.py b/src/zope/i18n/locales/tests/test_xmlfactory.py
index 792c96d..6b52dd2 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,14 +34,14 @@ 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'):
+ # 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():
+ # 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():
@@ -48,7 +49,6 @@ class LocaleXMLFileTestCase(TestCase):
# parseDateTimePattern(format.pattern) is not None)
-
def test_suite():
suite = TestSuite()
locale_dir = os.path.join(os.path.dirname(zope.i18n.__file__),