diff options
author | Marius Gedminas <marius@gedmin.as> | 2019-07-10 15:25:53 +0300 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2019-07-10 15:25:53 +0300 |
commit | 2735e1e170e5f8c66275229573669b632c0a8b61 (patch) | |
tree | 9d31f61bbaf2e48c5189d02733cf726bda9b2173 | |
parent | 5e6abf2f9811f1ce2d208c447f084a6bebadb32e (diff) | |
download | zope-i18n-2735e1e170e5f8c66275229573669b632c0a8b61.tar.gz |
Back to 100% test coverage to make coveralls happy
-rw-r--r-- | src/zope/i18n/tests/test_formats.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zope/i18n/tests/test_formats.py b/src/zope/i18n/tests/test_formats.py index 879a71a..83c9129 100644 --- a/src/zope/i18n/tests/test_formats.py +++ b/src/zope/i18n/tests/test_formats.py @@ -1039,6 +1039,7 @@ class TestNumberPatternParser(_TestCase): (None, '', None, '0', '', '', None, '1', None, ()), neg_pattern) + class TestNumberFormat(_TestCase): """Test the functionality of an implmentation of the NumberFormat.""" @@ -1326,6 +1327,10 @@ class TestNumberFormat(_TestCase): self.format.format(-987654321, '+#,##,#0,000;-#,##,#0,000'), '-98,76,54,321') + def testFormatBadThousandSeparator(self): + self.assertRaises(ValueError, + self.format.format, 23341, '0,') + def testFormatDecimal(self): self.assertEqual(self.format.format(23341.02357, '###0.0#'), '23341.02') |