Ticket #3114: multiple_choice_tests.patch

File multiple_choice_tests.patch, 824 bytes (added by Honza Král <Honza.Kral@…>, 17 years ago)

tests that fail for the current SVN version

  • tests/regressiontests/forms/tests.py

     
    16621662<li><label><input checked="checked" type="checkbox" name="composers" value="J" /> John Lennon</label></li>
    16631663<li><label><input type="checkbox" name="composers" value="P" /> Paul McCartney</label></li>
    16641664</ul>
    1665 >>> f = SongForm({'composers': ['J', 'P']})
     1665>>> from django.utils.datastructures import MultiValueDict
     1666>>> d = MultiValueDict()
     1667>>> d.appendlist( 'composers', 'J' )
     1668>>> d.appendlist( 'composers', 'P' )
     1669>>> f = SongForm(d)
    16661670>>> print f['composers']
    16671671<ul>
    16681672<li><label><input checked="checked" type="checkbox" name="composers" value="J" /> John Lennon</label></li>
Back to Top