~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/regressiontests/forms/localflavor/is_.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
>>> f.clean('230880343')
16
16
Traceback (most recent call last):
17
17
...
18
 
ValidationError: [u'Ensure this value has at least 10 characters (it has 9).']
 
18
ValidationError: [u'Ensure this value has at least 10 characters (it has 9).', u'Enter a valid Icelandic identification number. The format is XXXXXX-XXXX.']
19
19
>>> f.clean('230880343234')
20
20
Traceback (most recent call last):
21
21
...
22
 
ValidationError: [u'Ensure this value has at most 11 characters (it has 12).']
 
22
ValidationError: [u'Ensure this value has at most 11 characters (it has 12).', u'Enter a valid Icelandic identification number. The format is XXXXXX-XXXX.']
23
23
>>> f.clean('abcdefghijk')
24
24
Traceback (most recent call last):
25
25
...
61
61
>>> f.clean('123456')
62
62
Traceback (most recent call last):
63
63
...
64
 
ValidationError: [u'Ensure this value has at least 7 characters (it has 6).']
 
64
ValidationError: [u'Ensure this value has at least 7 characters (it has 6).', u'Enter a valid value.']
65
65
>>> f.clean('123456555')
66
66
Traceback (most recent call last):
67
67
...
68
 
ValidationError: [u'Ensure this value has at most 8 characters (it has 9).']
 
68
ValidationError: [u'Ensure this value has at most 8 characters (it has 9).', u'Enter a valid value.']
69
69
>>> f.clean('abcdefg')
70
70
Traceback (most recent call last):
71
71
ValidationError: [u'Enter a valid value.']
72
72
>>> f.clean(' 1234567 ')
73
73
Traceback (most recent call last):
74
74
...
75
 
ValidationError: [u'Ensure this value has at most 8 characters (it has 9).']
 
75
ValidationError: [u'Ensure this value has at most 8 characters (it has 9).', u'Enter a valid value.']
76
76
>>> f.clean(' 12367  ')
77
77
Traceback (most recent call last):
78
78
...