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:
Jannis Leidel 2010-01-17 22:49:27 +00:00
parent d033dfd894
commit 235bf7f1f7
1 changed files with 1 additions and 7 deletions

View File

@ -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):
...