#NEWLINE# def test_merge_annotation__func__dict( self ) : #NEWLINE# #INDENT# ann1 = { #NEWLINE# #INDENT# 0 : 0 , #NEWLINE# 1 : { #NEWLINE# #INDENT# 0 : 0 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# ann2 = { #NEWLINE# #INDENT# 1 : { #NEWLINE# #INDENT# 1 : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# 2 : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# ann1c = ann1 . copy ( ) #NEWLINE# ann2c = ann2 . copy ( ) #NEWLINE# targ = { #NEWLINE# #INDENT# 0 : 0 , #NEWLINE# 1 : { #NEWLINE# #INDENT# 0 : 0 , #NEWLINE# 1 : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# 2 : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# res = merge_annotation ( ann1 , ann2 ) #NEWLINE# self . assertEqual ( res , targ ) #NEWLINE# self . assertEqual ( ann1 , ann1c ) #NEWLINE# self . assertEqual ( ann2 , ann2c )