#NEWLINE# def test_field_validators_can_be_any_iterable( self ) : #NEWLINE# #INDENT# class UserForm ( forms . Form ) : #NEWLINE# #INDENT# full_name = forms . CharField ( max_length = 50 , validators = ( validators . validate_integer , validators . validate_email ) ) #NEWLINE# #UNINDENT# form = UserForm ( { #NEWLINE# #INDENT# 'full_name' : 'not int nor mail' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( form . is_valid ( ) ) #NEWLINE# self . assertEqual ( self . errors [ 'full_name' ] , [ 'Enter a valid integer.' , 'Enter a valid email address.' ] )