From 91f5970bb4acc84dcb92e4f4f0034fcb7aba1582 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 24 Dec 2011 11:15:26 +0000 Subject: [PATCH] Added a lower level test for numberformat when grouping is 0 and force_grouping is True. Thanks Claude Paroz. Refs #17414. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17268 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/i18n/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regressiontests/i18n/tests.py b/tests/regressiontests/i18n/tests.py index cc17d74315..0a2852e039 100644 --- a/tests/regressiontests/i18n/tests.py +++ b/tests/regressiontests/i18n/tests.py @@ -329,6 +329,8 @@ class FormattingTests(TestCase): self.assertEqual(u'-66666.6', nformat(-66666.666, decimal_sep='.', decimal_pos=1)) self.assertEqual(u'-66666.0', nformat(int('-66666'), decimal_sep='.', decimal_pos=1)) self.assertEqual(u'10000.0', nformat(self.l, decimal_sep='.', decimal_pos=1)) + # This unusual grouping/force_grouping combination may be triggered by the intcomma filter (#17414) + self.assertEqual(u'10000', nformat(self.l, decimal_sep='.', decimal_pos=0, grouping=0, force_grouping=True)) # date filter self.assertEqual(u'31.12.2009 в 20:50', Template('{{ dt|date:"d.m.Y в H:i" }}').render(self.ctxt))