Author: jezdez
Date: 2010-12-01 20:00:32 -0600 (Wed, 01 Dec 2010)
New Revision: 14775

Modified:
   
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py
Log:
[1.2.X] Fixed broken German localflavor test introduced in r14627. Thanks for 
Rubber Ducking, Alex and Carl.

Modified: 
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py
===================================================================
--- 
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py 
    2010-12-02 01:03:00 UTC (rev 14774)
+++ 
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py 
    2010-12-02 02:00:32 UTC (rev 14775)
@@ -27,22 +27,22 @@
             try:
                 required.clean(input)
             except ValidationError, e:
-                self.assertTrue(unicode(errors) in unicode(e))
+                self.assertEqual(errors, e.messages)
             else:
                 self.fail()
             try:
                 optional.clean(input)
             except ValidationError, e:
-                self.assertTrue(unicode(errors) in unicode(e))
+                self.assertEqual(errors, e.messages)
             else:
                 self.fail()
         # test required inputs
-        error_required = u'This field is required'
+        error_required = [u'This field is required.']
         for val in EMPTY_VALUES:
             try:
                 required.clean(val)
             except ValidationError, e:
-                self.assertTrue(error_required in unicode(e))
+                self.assertEqual(error_required, e.messages)
             else:
                 self.fail()
             self.assertEqual(optional.clean(val), u'')

-- 
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.

Reply via email to