summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-05-07 16:59:08 +0000
committerJannis Leidel <jannis@leidel.info>2011-05-07 16:59:08 +0000
commit02b837d38a37239dcd7366e7735e12aff51ab790 (patch)
treee2f4f1341412df7a77c084faf72a9a00983b7aa5 /tests
parentc5f58f54fde93935bbc42ef1c3ee841933a30893 (diff)
Fixed #8527 -- Made CAPostalCodeField more forgiving of the input format. Thanks to Claude Paroz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/forms/localflavor/ca.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/regressiontests/forms/localflavor/ca.py b/tests/regressiontests/forms/localflavor/ca.py
index bd31a5ce46..8a17ed26e7 100644
--- a/tests/regressiontests/forms/localflavor/ca.py
+++ b/tests/regressiontests/forms/localflavor/ca.py
@@ -45,13 +45,17 @@ class CALocalFlavorTests(LocalFlavorTestCase):
'T2S 2W7': 'T2S 2W7',
'T2S 2Z7': 'T2S 2Z7',
'T2Z 2H7': 'T2Z 2H7',
-
+ 'T2S2H7' : 'T2S 2H7',
+ 't2s 2h7': 'T2S 2H7',
+ 't2s2h7' : 'T2S 2H7',
+ 't2s 2H7': 'T2S 2H7',
+ ' t2s 2H7 ': 'T2S 2H7',
}
invalid = {
- 'T2S2H7' : error_format,
'T2S 2H' : error_format,
'2T6 H8I': error_format,
'T2S2H' : error_format,
+ 't2s h8i': error_format,
90210 : error_format,
'W2S 2H3': error_format,
'Z2S 2H3': error_format,