diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index 7e0bdeeb77..a9d1f8b24c 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -791,6 +791,79 @@ Java """) + f = SongForm() + self.assertHTMLEqual( + f.as_table(), + '' + '' + '' + '', + ) + self.assertHTMLEqual( + f.as_ul(), + '
  • ' + '
  • ' + '
  • ' + '
  • ', + ) + self.assertHTMLEqual( + f.as_p(), + '

    ' + '

    ' + '

    ' + '

    ', + ) + + def test_multiple_checkbox_render(self): + f = SongForm() + self.assertHTMLEqual( + f.as_table(), + '' + '' + '
    ' + '
    ' + '
    ' + '
    ', + ) + self.assertHTMLEqual( + f.as_ul(), + '
  • ' + '
  • ' + '
  • ' + '
    ' + '
    ' + '
  • ', + ) + self.assertHTMLEqual( + f.as_p(), + '

    ' + '

    ' + '

    ' + '
    ' + '
    ' + '

    ', + ) def test_form_with_disabled_fields(self): class PersonForm(Form):