#NEWLINE# def test_model_multiple_choice_run_validators( self ) : #NEWLINE# #INDENT# '\n        Test that ModelMultipleChoiceField run given validators (#14144).\n        ' #NEWLINE# for i in range ( 30 ) : #NEWLINE# #INDENT# Person . objects . create ( name = ( 'Person %s' % i ) ) #NEWLINE# #UNINDENT# self . _validator_run = False #NEWLINE# def my_validator( value ) : #NEWLINE# #INDENT# self . _validator_run = True #NEWLINE# #UNINDENT# f = forms . ModelMultipleChoiceField ( queryset = Person . objects . all ( ) , validators = [ my_validator ] ) #NEWLINE# f . clean ( [ p . pk for p in Person . objects . all ( ) [ 8 : 9 ] ] ) #NEWLINE# self . assertTrue ( self . _validator_run )