#NEWLINE# def test_parsing_values_fail( self ) : #NEWLINE# #INDENT# patch = Patch ( DumbSerializer ( ) , data = [ { #NEWLINE# #INDENT# 'path' : '/name' , #NEWLINE# 'op' : 'set' , #NEWLINE# 'value' : 'xxx' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'path' : '/int_fld' , #NEWLINE# 'op' : 'set' , #NEWLINE# 'value' : 'xxx' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# assert ( not patch . is_valid ( ) ) #NEWLINE# assert ( self . errors == [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , [ 'A valid integer is required.' ] ] )