Permalink
Browse files

Fixed test introduced in r12044 to actually test the issue.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d033dfd commit 235bf7f1f7bbc85024560addb384f213fb6d0950 @jezdez jezdez committed Jan 17, 2010
Showing with 1 addition and 7 deletions.
  1. +1 −7 tests/regressiontests/forms/localflavor/uk.py
View
8 tests/regressiontests/forms/localflavor/uk.py
@@ -58,13 +58,7 @@
u''
>>> f.clean('')
u''
->>> class MyUKPostcodeField(UKPostcodeField):
-... default_error_messages = {
-... 'invalid': 'Enter a bloody postcode!',
-... }
-...
->>>
->>> f = MyUKPostcodeField(required=False)
+>>> f = UKPostcodeField(error_messages={'invalid': 'Enter a bloody postcode!'})
>>> f.clean('1NV 4L1D')
Traceback (most recent call last):
...

0 comments on commit 235bf7f

Please sign in to comment.