Author: mtredinnick
Date: 2007-03-31 06:45:24 -0500 (Sat, 31 Mar 2007)
New Revision: 4880
Modified:
django/trunk/tests/regressiontests/humanize/tests.py
Log:
Fixed #3017 -- Added tests for humanize filter.
Modified: django/trunk/tests/regressiontests/humanize/tests.py
===================================================================
--- django/trunk/tests/regressiontests/humanize/tests.py 2007-03-31
11:35:06 UTC (rev 4879)
+++ django/trunk/tests/regressiontests/humanize/tests.py 2007-03-31
11:45:24 UTC (rev 4880)
@@ -27,8 +27,10 @@
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')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---