summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-08-16 07:00:30 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-08-16 07:00:30 +0000
commitcbcc4159342288f6866f2006c30dd16740703049 (patch)
tree73539f772412b9354f44e870cf1b186a730405d9 /tests/regressiontests/forms
parent77c949289e8cc93df47997c44b8710217996cf63 (diff)
Fixed #8229: Added handling for a special case in the validation of Spanish ID numbers. Thanks to Marc Garcia for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/forms')
-rw-r--r--tests/regressiontests/forms/localflavor/es.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/localflavor/es.py b/tests/regressiontests/forms/localflavor/es.py
index f149aa9cbe..66d18dd0fc 100644
--- a/tests/regressiontests/forms/localflavor/es.py
+++ b/tests/regressiontests/forms/localflavor/es.py
@@ -167,6 +167,8 @@ Traceback (most recent call last):
ValidationError: [u'Invalid checksum for NIE.']
>>> f.clean('B38790911')
'B38790911'
+>>> f.clean('B31234560')
+'B31234560'
>>> f.clean('B-3879091A')
'B3879091A'
>>> f.clean('B 38790917')