#NEWLINE# def test_deepcopy( self ) : #NEWLINE# #INDENT# o = OptionValueContainer ( ) #NEWLINE# o . foo = RankedValue ( RankedValue . FLAG , 1 ) #NEWLINE# o . bar = RankedValue ( RankedValue . FLAG , { #NEWLINE# #INDENT# 'a' : 111 , #NEWLINE# #UNINDENT# } ) #NEWLINE# p = copy . deepcopy ( o ) #NEWLINE# self . assertEqual ( 1 , o . foo ) #NEWLINE# o . baz = RankedValue ( RankedValue . FLAG , 42 ) #NEWLINE# self . assertFalse ( hasattr ( p , 'baz' ) ) #NEWLINE# o . bar [ 'b' ] = 222 #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'a' : 111 , #NEWLINE# #UNINDENT# } , p . bar )