Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #3017 -- Added tests for humanize filter.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 04c155fd06484058d5677f61f6931f7f5da0922f 1 parent d7cf8eb
@malcolmt malcolmt authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/regressiontests/humanize/tests.py
View
6 tests/regressiontests/humanize/tests.py
@@ -27,8 +27,10 @@ def test_ordinal(self):
self.humanize_tester(test_list, result_list, 'ordinal')
def test_intcomma(self):
- test_list = ('100','1000','10123','10311','1000000')
- result_list = ('100', '1,000', '10,123', '10,311', '1,000,000')
+ test_list = (100, 1000, 10123, 10311, 1000000, 1234567.25,
+ '100','1000','10123','10311','1000000','1234567.1234567')
+ result_list = ('100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.25',
+ '100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.1234567')
self.humanize_tester(test_list, result_list, 'intcomma')
Please sign in to comment.
Something went wrong with that request. Please try again.