Kaydet (Commit) 235bf7f1 authored tarafından Jannis Leidel's avatar Jannis Leidel

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
üst d033dfd8
...@@ -58,13 +58,7 @@ u'BT32 4PX' ...@@ -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):
... ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment