Ticket #27920: 27920-test.diff

File 27920-test.diff, 965 bytes (added by Claude Paroz, 8 years ago)

Failing modified test

  • tests/forms_tests/widget_tests/test_radioselect.py

    diff --git a/tests/forms_tests/widget_tests/test_radioselect.py b/tests/forms_tests/widget_tests/test_radioselect.py
    index fea26ce..7f87f79 100644
    a b class RadioSelectTest(WidgetTest):  
    77    widget = RadioSelect
    88
    99    def test_render(self):
    10         self.check_html(self.widget(choices=self.beatles), 'beatle', 'J', html=(
     10        choices = (('', '------'),) + self.beatles
     11        self.check_html(self.widget(choices=choices), 'beatle', 'J', html=(
    1112            """<ul>
     13            <li><label><input type="radio" name="beatle" value /> ------</label></li>
    1214            <li><label><input checked type="radio" name="beatle" value="J" /> John</label></li>
    1315            <li><label><input type="radio" name="beatle" value="P" /> Paul</label></li>
    1416            <li><label><input type="radio" name="beatle" value="G" /> George</label></li>
Back to Top