@@ -402,18 +402,18 @@ def test_copy_nodes_from_tree_to_tree_merge_children_non_overriding_error(self):
402
402
403
403
def test_copy_nodes_from_tree_to_tree_merge_children_overriding (self ):
404
404
from_paths = ["d" , "e" , "g" , "h" , "f" ]
405
- to_paths = ["a/b /d" , "a/b /e" , "a/b /e/g" , "a/b /e/h" , "a/c/f" ]
405
+ to_paths = ["a/bb /d" , "a/bb /e" , "a/bb /e/g" , "a/bb /e/h" , "a/c/f" ]
406
406
shift_nodes (self .root , from_paths , to_paths )
407
407
408
408
root_other = Node ("a" , age = 90 )
409
- b = Node ("b" , age = 1 )
409
+ b = Node ("b" , age = 65 )
410
410
c = Node ("c" , age = 1 , parent = root_other )
411
411
b .parent = root_other
412
412
f = Node ("f" )
413
413
f .parent = c
414
- from_paths = ["a/b " , "a/c" ]
415
- to_paths = ["a/b" , "a/c" ]
416
- assert find_path (root_other , "a/b" ).get_attr ("age" ) == 1
414
+ from_paths = ["a/bb " , "a/c" ]
415
+ to_paths = ["a/b/bb " , "a/c" ]
416
+ assert find_path (root_other , "a/b" ).get_attr ("age" ) == 65
417
417
assert find_path (root_other , "a/c" ).get_attr ("age" ) == 1
418
418
419
419
copy_nodes_from_tree_to_tree (
0 commit comments