#NEWLINE# def test_formset_error_class( self ) : #NEWLINE# #INDENT# class CustomErrorList ( ErrorList ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# formset = FavoriteDrinksFormSet ( error_class = CustomErrorList ) #NEWLINE# self . assertEqual ( formset . forms [ 0 ] . error_class , CustomErrorList )