Ticket #10204: regressiontests.diff

File regressiontests.diff, 813 bytes (added by Pablo Suárez Hdez., 16 years ago)

Regressions Tests

  • tests/regressiontests/forms/localflavor/es.py

     
    155155'X0012953G'
    156156>>> f.clean('x-3287690-r')
    157157'X3287690R'
     158>>> f.clean('Y-3287690-R')
     159'Y3287690R'
     160>>> f.clean('y-3287690-r')
     161'Y3287690R'
     162>>> f.clean('Y 3287690 R')
     163'Y3287690R'
     164>>> f.clean('Y-3287690-T')
     165Traceback (most recent call last):
     166...
     167ValidationError: [u'Invalid checksum for NIE.']
     168>>> f.clean('Z-3287690-R')
     169'Z3287690R'
     170>>> f.clean('Z-3287690-T')
     171Traceback (most recent call last):
     172...
     173ValidationError: [u'Invalid checksum for NIE.']
    158174>>> f.clean('t-03287690r')
    159175'T03287690R'
    160176>>> f.clean('P2907500I')
Back to Top