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: I910c7f2b3eae107a8d8022366f738b006cf4831a
This commit is contained in:
Ivan Kolodyazhny 2020-01-20 18:38:35 +02:00
parent e6f423604a
commit 9c19e28c21
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ class ExecutionsTest(test.TestCase):
[self.mistralclient_executions.list(), False, False]
res = self.client.get(INDEX_URL)
self.assertTemplateUsed(res, 'mistral/executions/index.html')
self.assertItemsEqual(res.context['table'].data,
self.assertCountEqual(res.context['table'].data,
self.mistralclient_executions.list())
self.mock_pagination_list.assert_called_once_with(
entity="executions",

View File

@ -31,7 +31,7 @@ class TasksTest(test.TestCase):
res = self.client.get(INDEX_URL)
self.assertTemplateUsed(res, 'mistral/tasks/index.html')
self.assertItemsEqual(res.context['table'].data,
self.assertCountEqual(res.context['table'].data,
self.mistralclient_tasks.list())
self.mock_task_list.assert_called_once_with(helpers.IsHttpRequest())

View File

@ -33,7 +33,7 @@ class WorkflowsTest(test.TestCase):
res = self.client.get(INDEX_URL)
self.assertTemplateUsed(res, 'mistral/workbooks/index.html')
self.assertItemsEqual(res.context['table'].data,
self.assertCountEqual(res.context['table'].data,
self.mistralclient_workbooks.list())
self.mock_workbook_list.\
assert_called_once_with(helpers.IsHttpRequest())

View File

@ -33,7 +33,7 @@ class WorkflowsTest(test.TestCase):
res = self.client.get(INDEX_URL)
self.assertTemplateUsed(res, 'mistral/workflows/index.html')
self.assertItemsEqual(res.context['table'].data,
self.assertCountEqual(res.context['table'].data,
self.mistralclient_workflows.list())
self.mock_workflow_list.assert_called_once_with(
helpers.IsHttpRequest())