﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28421	Formset test contain too many assert	Windson yang	nobody	"In 
https://github.com/django/django/blob/master/tests/forms_tests/tests/test_formsets.py#L509

It contains

{{{
self.assertHTMLEqual(
            '\n'.join(form_output),
            """"""<li>Choice: <input type=""text"" name=""choices-0-choice"" value=""Calexico"" /></li>
<li>Votes: <input type=""number"" name=""choices-0-votes"" value=""100"" /></li>
<li>Delete: <input type=""checkbox"" name=""choices-0-DELETE"" /></li>
}}}

to check the output of formset, and also have 

{{{
self.assertTrue(formset.is_valid())
self.assertEqual(
            [form.cleaned_data for form in formset.forms],
            [
                {'votes': 100, 'DELETE': False, 'choice': 'Calexico'},
                {'votes': 900, 'DELETE': True, 'choice': 'Fergie'},
                {},
            ]
        )
}}}

to check the deletion.maybe we should divide the function into multiple small tests."	Cleanup/optimization	new	Forms	1.11	Normal				Unreviewed	0	0	0	0	0	0
