#NEWLINE# def test_setitem_nested_2( self ) : #NEWLINE# #INDENT# nested1 = MultiDimensionalMapping ( [ ( 'B' , 1 ) ] ) #NEWLINE# ndmap = MultiDimensionalMapping ( [ ( 'A' , nested1 ) ] ) #NEWLINE# nested2 = MultiDimensionalMapping ( [ ( 'C' , 2 ) ] ) #NEWLINE# nested_clone = nested1 . clone ( ) #NEWLINE# nested_clone . update ( nested2 ) #NEWLINE# ndmap . update ( { #NEWLINE# #INDENT# 'A' : ndmap , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( ndmap [ 'A' ] . data , nested_clone . data )