@@ -92,27 +92,26 @@ def test_dict_matching_matcher() -> None:
92
92
assert [] != matchers .DictMatching ({"hello" : "world" })
93
93
94
94
95
- def test_array_matching_matcher () -> None :
96
- """It should have an "anything with these attributes" matcher."""
97
- assert [1 , 2 , 3 ] == matchers .ArrayMatching ([1 ])
98
- assert [1 , 2 , 3 ] == matchers .ArrayMatching ([1 , 2 ])
99
- assert [1 , 2 , 3 ] == matchers .ArrayMatching ([1 , 2 , 3 ])
100
- assert [1 , 2 , 3 ] != matchers .ArrayMatching ([1 , 2 , 3 , 4 ])
101
- assert [1 ] != matchers .ArrayMatching ([1 , 2 ])
102
-
103
- assert [{"hello" : "world" }, {"yoo" : "man" }] == matchers .ArrayMatching (
95
+ def test_list_matching_matcher () -> None :
96
+ assert [1 , 2 , 3 ] == matchers .ListMatching ([1 ])
97
+ assert [1 , 2 , 3 ] == matchers .ListMatching ([1 , 2 ])
98
+ assert [1 , 2 , 3 ] == matchers .ListMatching ([1 , 2 , 3 ])
99
+ assert [1 , 2 , 3 ] != matchers .ListMatching ([1 , 2 , 3 , 4 ])
100
+ assert [1 ] != matchers .ListMatching ([1 , 2 ])
101
+
102
+ assert [{"hello" : "world" }, {"yoo" : "man" }] == matchers .ListMatching (
104
103
[{"hello" : "world" }]
105
104
)
106
- assert [{"hello" : "world" }, {"yoo" : "man" }] == matchers .ArrayMatching (
105
+ assert [{"hello" : "world" }, {"yoo" : "man" }] == matchers .ListMatching (
107
106
[{"yoo" : "man" }]
108
107
)
109
- assert [{"hello" : "world" }, {"yoo" : "man" }] != matchers .ArrayMatching (
108
+ assert [{"hello" : "world" }, {"yoo" : "man" }] != matchers .ListMatching (
110
109
[{"yoo" : "mann" }]
111
110
)
112
111
113
- assert 1 != matchers .ArrayMatching ([1 ])
112
+ assert 1 != matchers .ListMatching ([1 ])
114
113
115
- assert str (matchers .ArrayMatching ([1 ])) == "<ArrayMatching [1]>"
114
+ assert str (matchers .ListMatching ([1 ])) == "<ListMatching [1]>"
116
115
117
116
118
117
def test_string_matching_matcher () -> None :
0 commit comments