diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-01-17 22:49:27 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-01-17 22:49:27 +0000 |
| commit | 235bf7f1f7bbc85024560addb384f213fb6d0950 (patch) | |
| tree | d90872736d5b1e074c3fadb1aa1ef7f86debe426 | |
| parent | d033dfd894dfecd674f7afae17dc695324a14e68 (diff) | |
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
| -rw-r--r-- | tests/regressiontests/forms/localflavor/uk.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/regressiontests/forms/localflavor/uk.py b/tests/regressiontests/forms/localflavor/uk.py index cd6c8edf84..d041e8f179 100644 --- a/tests/regressiontests/forms/localflavor/uk.py +++ b/tests/regressiontests/forms/localflavor/uk.py @@ -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): ... |
