#NEWLINE# def test_deepcopy( self ) : #NEWLINE# #INDENT# s = SimpleLazyObject ( complex_object ) #NEWLINE# self . assertIs ( s . _wrapped , empty ) #NEWLINE# s2 = copy . deepcopy ( s ) #NEWLINE# self . assertIs ( s . _wrapped , empty ) #NEWLINE# self . assertEqual ( s2 , complex_object ( ) ) #NEWLINE# name = s . name #NEWLINE# self . assertIsNot ( s . _wrapped , empty ) #NEWLINE# s3 = copy . deepcopy ( s2 ) #NEWLINE# self . assertEqual ( s3 , complex_object ( ) )