Kaydet (Commit) 04c155fd authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

Fixed #3017 -- Added tests for humanize filter.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst d7cf8eb4
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment