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
This commit is contained in:
@@ -311,7 +311,7 @@ class TestListNDPProxy(TestNDPProxy):
|
|||||||
**{'project_id': project.id}
|
**{'project_id': project.id}
|
||||||
)
|
)
|
||||||
self.assertEqual(self.columns, columns)
|
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):
|
def test_ndp_proxy_list_project_domain(self):
|
||||||
project = identity_fakes_v3.FakeProject.create_one_project()
|
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.network_client.ndp_proxies.assert_called_once_with(**filters)
|
||||||
self.assertEqual(self.columns, columns)
|
self.assertEqual(self.columns, columns)
|
||||||
self.assertItemsEqual(self.data, list(data))
|
self.assertCountEqual(self.data, list(data))
|
||||||
|
|
||||||
|
|
||||||
class TestSetNDPProxy(TestNDPProxy):
|
class TestSetNDPProxy(TestNDPProxy):
|
||||||
|
|||||||
Reference in New Issue
Block a user