diff options
author | Marius Gedminas <marius@gedmin.as> | 2019-07-10 15:51:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 15:51:29 +0300 |
commit | b6f4f1710d34328f7d32eff692f6c61cd78bb455 (patch) | |
tree | 9d31f61bbaf2e48c5189d02733cf726bda9b2173 /src/zope/i18n/tests/test_formats.py | |
parent | 8b62b3b3592c3133b30e08d48e057cf248e20448 (diff) | |
parent | 2735e1e170e5f8c66275229573669b632c0a8b61 (diff) | |
download | zope-i18n-b6f4f1710d34328f7d32eff692f6c61cd78bb455.tar.gz |
Merge pull request #43 from zopefoundation/drop-py34
Drop Python 3.4 support
Diffstat (limited to 'src/zope/i18n/tests/test_formats.py')
-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') |