#NEWLINE# def test_move_nested( self ) : #NEWLINE# #INDENT# new_project = ProjectFactory ( ) #NEWLINE# other_node_settings = new_project . get_addon ( 'osfstorage' ) #NEWLINE# move_to = other_node_settings . get_root ( ) . append_folder ( 'Cloud' ) #NEWLINE# to_move = self . node_settings . get_root ( ) . append_folder ( 'Carp' ) #NEWLINE# child = to_move . append_file ( 'A dee um' ) #NEWLINE# moved = to_move . move_under ( move_to ) #NEWLINE# child . reload ( ) #NEWLINE# assert_equal ( moved , to_move ) #NEWLINE# assert_equal ( new_project , to_move . node ) #NEWLINE# assert_equal ( new_project , move_to . node ) #NEWLINE# assert_equal ( new_project , child . node )