Ticket #3449: patch

File patch, 1.2 KB (added by (removed), 18 years ago)

update the tests

  • tests/regressiontests/forms/tests.py

    === modified file 'tests/regressiontests/forms/tests.py'
     
    14931493>>> f.clean('3')
    14941494Traceback (most recent call last):
    14951495...
    1496 ValidationError: [u'Select a valid choice. 3 is not one of the available choices.']
     1496ValidationError: [u'Select a valid choice. That choice is not one of the available choices.']
    14971497
    14981498>>> f = ChoiceField(choices=[('1', '1'), ('2', '2')], required=False)
    14991499>>> f.clean('')
     
    15071507>>> f.clean('3')
    15081508Traceback (most recent call last):
    15091509...
    1510 ValidationError: [u'Select a valid choice. 3 is not one of the available choices.']
     1510ValidationError: [u'Select a valid choice. That choice is not one of the available choices.']
    15111511
    15121512>>> f = ChoiceField(choices=[('J', 'John'), ('P', 'Paul')])
    15131513>>> f.clean('J')
     
    15151515>>> f.clean('John')
    15161516Traceback (most recent call last):
    15171517...
    1518 ValidationError: [u'Select a valid choice. John is not one of the available choices.']
     1518ValidationError: [u'Select a valid choice. That choice is not one of the available choices.']
    15191519
    15201520# NullBooleanField ############################################################
    15211521
Back to Top