#NEWLINE# def test_formset_nonzero( self ) : #NEWLINE# #INDENT# '\n        Formsets with no forms should still evaluate as true.\n        Regression test for #15722\n        ' #NEWLINE# ChoiceFormset = formset_factory ( Choice , extra = 0 ) #NEWLINE# formset = ChoiceFormset ( ) #NEWLINE# self . assertEqual ( len ( self . forms ) , 0 ) #NEWLINE# self . assertTrue ( formset )