Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 235bf7f1f7bbc85024560addb384f213fb6d0950 1 parent d033dfd
@jezdez jezdez authored
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):
...
Please sign in to comment.
Something went wrong with that request. Please try again.