#NEWLINE# def test_required_validator_list( mock_validator ) : #NEWLINE# #INDENT# required = [ 'one' , 'two' ] #NEWLINE# errors = list ( load_schema . required_validator ( mock_validator , required , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert ( len ( errors ) == 2 )