#NEWLINE# def testSet_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 . set ( 'a.b.c.d.123' , 1 ) #NEWLINE# #UNINDENT# self . assertRaises ( NameError , f ) #NEWLINE# self . assert_ ( ( p2 == p2 ) )