#NEWLINE# def testDictSet_nochange_on_failure( self ) : #NEWLINE# #INDENT# p = sample_tree ( ) #NEWLINE# p1 = p . copy ( deep = True ) #NEWLINE# p2 = p . copy ( deep = True ) #NEWLINE# def f( ) : #NEWLINE# #INDENT# p1 [ 'a.b.c.d.123' ] = 1 #NEWLINE# #UNINDENT# self . assertRaises ( NameError , p ) #NEWLINE# self . assert_ ( ( p1 == p2 ) )