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:
Malcolm Tredinnick 2007-03-31 11:45:24 +00:00
parent d7cf8eb406
commit 04c155fd06
1 changed files with 4 additions and 2 deletions

View File

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