From b6af7883b7f493f01142fe6774dab434454a080a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 27 Jun 2025 23:46:22 +0900 Subject: [PATCH] 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] https://github.com/testing-cabal/testtools/commit/e0d56b7ce65ae5b3d [2] https://github.com/testing-cabal/testtools/commit/f01e86084e6a858d1 Change-Id: I8b68212a88553aff5c3b4182c246b3c0f7365cf6 --- openstackclient/tests/unit/network/v2/test_ndp_proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstackclient/tests/unit/network/v2/test_ndp_proxy.py b/openstackclient/tests/unit/network/v2/test_ndp_proxy.py index 13d3f3d996..f9d9a3b3cc 100644 --- a/openstackclient/tests/unit/network/v2/test_ndp_proxy.py +++ b/openstackclient/tests/unit/network/v2/test_ndp_proxy.py @@ -311,7 +311,7 @@ class TestListNDPProxy(TestNDPProxy): **{'project_id': project.id} ) self.assertEqual(self.columns, columns) - self.assertItemsEqual(self.data, list(data)) + self.assertCountEqual(self.data, list(data)) def test_ndp_proxy_list_project_domain(self): project = identity_fakes_v3.FakeProject.create_one_project() @@ -332,7 +332,7 @@ class TestListNDPProxy(TestNDPProxy): self.network_client.ndp_proxies.assert_called_once_with(**filters) self.assertEqual(self.columns, columns) - self.assertItemsEqual(self.data, list(data)) + self.assertCountEqual(self.data, list(data)) class TestSetNDPProxy(TestNDPProxy):