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')