Author: kmtracey
Date: 2011-09-09 10:57:45 -0700 (Fri, 09 Sep 2011)
New Revision: 16736

Modified:
   django/trunk/tests/regressiontests/humanize/tests.py
Log:
Add a test for the intcomma regression described in #16404/#16562, fixed in 
r16726. Refs #16404.


Modified: django/trunk/tests/regressiontests/humanize/tests.py
===================================================================
--- django/trunk/tests/regressiontests/humanize/tests.py        2011-09-09 
17:54:04 UTC (rev 16735)
+++ django/trunk/tests/regressiontests/humanize/tests.py        2011-09-09 
17:57:45 UTC (rev 16736)
@@ -41,6 +41,17 @@
 
         self.humanize_tester(test_list, result_list, 'intcomma')
 
+    def test_l10n_intcomma(self):
+        test_list = (100, 1000, 10123, 10311, 1000000, 1234567.25,
+                     '100', '1000', '10123', '10311', '1000000', 
'1234567.1234567',
+                     None)
+        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',
+                     None)
+
+        with self.settings(USE_L10N=True, USE_THOUSAND_SEPARATOR=False):
+            self.humanize_tester(test_list, result_list, 'intcomma')
+
     def test_intword(self):
         test_list = ('100', '1000000', '1200000', '1290000',
                      '1000000000', '2000000000', '6000000000000',

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to