Fixed #3017 -- Added tests for humanize filter.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d7cf8eb406
commit
04c155fd06
|
@ -27,8 +27,10 @@ should've produced %s""" % (method, rendered, result_list[index]))
|
|||
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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue