Ticket #3017: humanize.diff
File humanize.diff, 894 bytes (added by , 18 years ago) |
---|
-
tests/regressiontests/humanize/tests.py
27 27 self.humanize_tester(test_list, result_list, 'ordinal') 28 28 29 29 def test_intcomma(self): 30 test_list = ('100','1000','10123','10311','1000000') 31 result_list = ('100', '1,000', '10,123', '10,311', '1,000,000') 30 test_list = (100, 1000, 10123, 10311, 1000000, 1234567.1234567, 31 '100','1000','10123','10311','1000000','1234567.1234567') 32 result_list = ('100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.1234567', 33 '100', '1,000', '10,123', '10,311', '1,000,000','1,234,567.1234567') 32 34 33 35 self.humanize_tester(test_list, result_list, 'intcomma') 34 36