@@ -92,12 +92,12 @@ def test_errors_if_target_does_not_exist_in_a_large_tree(self):
92
92
def test_can_find_path_to_parent (self ):
93
93
tree = Tree ("parent" , [Tree ("x" ), Tree ("sibling" )])
94
94
expected = ["x" , "parent" ]
95
- self .assertEquals (tree .path_to ("x" , "parent" ), expected )
95
+ self .assertEqual (tree .path_to ("x" , "parent" ), expected )
96
96
97
97
def test_can_find_path_to_sibling (self ):
98
98
tree = Tree ("parent" , [Tree ("a" ), Tree ("x" ), Tree ("b" ), Tree ("c" )])
99
99
expected = ["x" , "parent" , "b" ]
100
- self .assertEquals (tree .path_to ("x" , "b" ), expected )
100
+ self .assertEqual (tree .path_to ("x" , "b" ), expected )
101
101
102
102
def test_can_find_path_to_cousin (self ):
103
103
tree = Tree (
@@ -115,20 +115,20 @@ def test_can_find_path_to_cousin(self):
115
115
],
116
116
)
117
117
expected = ["x" , "parent" , "grandparent" , "uncle" , "cousin-1" ]
118
- self .assertEquals (tree .path_to ("x" , "cousin-1" ), expected )
118
+ self .assertEqual (tree .path_to ("x" , "cousin-1" ), expected )
119
119
120
120
def test_can_find_path_not_involving_root (self ):
121
121
tree = Tree (
122
122
"grandparent" ,
123
123
[Tree ("parent" , [Tree ("x" ), Tree ("sibling-0" ), Tree ("sibling-1" )])],
124
124
)
125
125
expected = ["x" , "parent" , "sibling-1" ]
126
- self .assertEquals (tree .path_to ("x" , "sibling-1" ), expected )
126
+ self .assertEqual (tree .path_to ("x" , "sibling-1" ), expected )
127
127
128
128
def test_can_find_path_from_nodes_other_than_x (self ):
129
129
tree = Tree ("parent" , [Tree ("a" ), Tree ("x" ), Tree ("b" ), Tree ("c" )])
130
130
expected = ["a" , "parent" , "c" ]
131
- self .assertEquals (tree .path_to ("a" , "c" ), expected )
131
+ self .assertEqual (tree .path_to ("a" , "c" ), expected )
132
132
133
133
def test_errors_if_destination_does_not_exist (self ):
134
134
tree = Tree (
0 commit comments