Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Fixed broken German localflavor test introduced in r14627. Th…

…anks for Rubber Ducking, Alex and Carl.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6690e08eac796c06026312ca7eb0bbb594f0ae6c 1 parent d739164
@jezdez jezdez authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/forms/localflavor/utils.py
View
8 tests/regressiontests/forms/localflavor/utils.py
@@ -27,22 +27,22 @@ def assertFieldOutput(self, fieldclass, valid, invalid):
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'')
Please sign in to comment.
Something went wrong with that request. Please try again.