#NEWLINE# def test_value_diff( self ) : #NEWLINE# #INDENT# current = { #NEWLINE# #INDENT# 'cat' : 'meow' , #NEWLINE# 'dog' : 'woof' , #NEWLINE# 'horse' : [ 'neigh' , 'whinny' ] , #NEWLINE# #UNINDENT# } #NEWLINE# new_values = { #NEWLINE# #INDENT# 'dog' : 'bark' , #NEWLINE# 'horse' : 'snort' , #NEWLINE# #UNINDENT# } #NEWLINE# original = copy . deepcopy ( current ) #NEWLINE# backup = utils . value_diff ( current , new_values ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'dog' : 'woof' , #NEWLINE# 'horse' : [ 'neigh' , 'whinny' ] , #NEWLINE# #UNINDENT# } , backup ) #NEWLINE# self . assertEqual ( self , current )