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
This commit is contained in:
parent
d033dfd894
commit
235bf7f1f7
|
@ -58,13 +58,7 @@ u'BT32 4PX'
|
||||||
u''
|
u''
|
||||||
>>> f.clean('')
|
>>> f.clean('')
|
||||||
u''
|
u''
|
||||||
>>> class MyUKPostcodeField(UKPostcodeField):
|
>>> f = UKPostcodeField(error_messages={'invalid': 'Enter a bloody postcode!'})
|
||||||
... default_error_messages = {
|
|
||||||
... 'invalid': 'Enter a bloody postcode!',
|
|
||||||
... }
|
|
||||||
...
|
|
||||||
>>>
|
|
||||||
>>> f = MyUKPostcodeField(required=False)
|
|
||||||
>>> f.clean('1NV 4L1D')
|
>>> f.clean('1NV 4L1D')
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue