Skip to content

Commit b6af788

Browse files
committed
Replace deprecated assertItemsEqual
It has been provided by testtools to ease migration from python 2, but was deprecated in 2.7.2[1] and will be removed in 2.8.0[2]. [1] testing-cabal/testtools@e0d56b7ce65ae5b3d [2] testing-cabal/testtools@f01e86084e6a858d1 Change-Id: I8b68212a88553aff5c3b4182c246b3c0f7365cf6
1 parent ea85c7a commit b6af788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openstackclient/tests/unit/network/v2/test_ndp_proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_ndp_proxy_list_project(self):
311311
**{'project_id': project.id}
312312
)
313313
self.assertEqual(self.columns, columns)
314-
self.assertItemsEqual(self.data, list(data))
314+
self.assertCountEqual(self.data, list(data))
315315

316316
def test_ndp_proxy_list_project_domain(self):
317317
project = identity_fakes_v3.FakeProject.create_one_project()
@@ -332,7 +332,7 @@ def test_ndp_proxy_list_project_domain(self):
332332

333333
self.network_client.ndp_proxies.assert_called_once_with(**filters)
334334
self.assertEqual(self.columns, columns)
335-
self.assertItemsEqual(self.data, list(data))
335+
self.assertCountEqual(self.data, list(data))
336336

337337

338338
class TestSetNDPProxy(TestNDPProxy):

0 commit comments

Comments
 (0)