s/assertItemsEqual/assertCountEqual/g

assertItemsEqual was renamed to assertCountEqual in Python 3, and the
testsuite is failing now - rename it.
See also https://six.readthedocs.io/#six.assertCountEqual

This unbreaks the testsuite.

Change-Id: Ia04b22a61dab28a986216ae2f4f49106ee843fa0
This commit is contained in:
Ivan Kolodyazhny 2020-01-20 18:46:40 +02:00
parent d38aa6140a
commit 3ac29e7f86
2 changed files with 2 additions and 2 deletions

View File

@ -526,7 +526,7 @@ class DatabaseConfigurationsTests(test.TestCase):
self.mock_configuration_instances.assert_called_once_with(
test.IsHttpRequest(), config.id)
table_data = res.context['instances_table'].data
self.assertItemsEqual(
self.assertCountEqual(
self.configuration_instances.list(), table_data)
self.assertTemplateUsed(
res, 'project/database_configurations/details.html')

View File

@ -53,7 +53,7 @@ class LogsTests(test.TestCase):
self.mock_root_show.assert_called_once_with(
test.IsHttpRequest(), database.id)
table_data = res.context['logs_table'].data
self.assertItemsEqual(self.logs.list(), table_data)
self.assertCountEqual(self.logs.list(), table_data)
self.assertTemplateUsed(
res, 'horizon/common/_detail_table.html')