From 2735e1e170e5f8c66275229573669b632c0a8b61 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 10 Jul 2019 15:25:53 +0300 Subject: Back to 100% test coverage to make coveralls happy --- src/zope/i18n/tests/test_formats.py | 5 +++++ 1 file changed, 5 insertions(+) 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') -- cgit v1.2.1