#NEWLINE# def test_patch_remove( self ) : #NEWLINE# #INDENT# orig = [ { #NEWLINE# #INDENT# 'name' : 'a' , #NEWLINE# 'type' : '1' , #NEWLINE# 'sheep' : '7' , #NEWLINE# #UNINDENT# } ] #NEWLINE# diff = { #NEWLINE# #INDENT# '_index' : [ 'name' ] , #NEWLINE# 'added' : [ ] , #NEWLINE# 'changed' : [ ] , #NEWLINE# 'removed' : [ { #NEWLINE# #INDENT# 'name' : 'a' , #NEWLINE# 'type' : '1' , #NEWLINE# 'sheep' : '7' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# expected = [ ] #NEWLINE# self . assertRecordsEqual ( patch . apply ( expected , orig ) , expected )