From 1a01e24331194a8580d9f16b02e02f8403680942 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 7 Jun 2014 23:08:23 +0200 Subject: [PATCH] Tested pluralization of decimals. Refs #16723. --- tests/defaultfilters/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/defaultfilters/tests.py b/tests/defaultfilters/tests.py index 75fa9dcb4d..ab6ff80961 100644 --- a/tests/defaultfilters/tests.py +++ b/tests/defaultfilters/tests.py @@ -654,6 +654,9 @@ class DefaultFiltersTests(TestCase): self.assertEqual(pluralize(1), '') self.assertEqual(pluralize(0), 's') self.assertEqual(pluralize(2), 's') + self.assertEqual(pluralize(decimal.Decimal(1)), '') + self.assertEqual(pluralize(decimal.Decimal(0)), 's') + self.assertEqual(pluralize(decimal.Decimal(2)), 's') self.assertEqual(pluralize([1]), '') self.assertEqual(pluralize([]), 's') self.assertEqual(pluralize([1, 2, 3]), 's')