Commit 235bf7f1 authored by Jannis Leidel's avatar Jannis Leidel
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
parent d033dfd8
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -58,13 +58,7 @@ u'BT32 4PX'
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):
...