#NEWLINE# def test_copy_rename( self ) : #NEWLINE# #INDENT# to_copy = self . node_settings . get_root ( ) . append_file ( 'Carp' ) #NEWLINE# copy_to = self . node_settings . get_root ( ) . append_folder ( 'Cloud' ) #NEWLINE# copied = to_copy . copy_under ( copy_to , name = 'But' ) #NEWLINE# assert_equal ( copied . name , 'But' ) #NEWLINE# assert_not_equal ( copied , to_copy ) #NEWLINE# assert_equal ( to_copy . name , 'Carp' ) #NEWLINE# assert_equal ( copied . parent , copy_to ) #NEWLINE# assert_equal ( to_copy . parent , self . node_settings . get_root ( ) )