Merge "Fix wrong assertion methods"

This commit is contained in:
Zuul 2022-09-30 12:23:19 +00:00 committed by Gerrit Code Review
commit 5826802793
2 changed files with 2 additions and 2 deletions

View File

@ -4634,7 +4634,7 @@ class TestServerList(_TestServerList):
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
self.flavors_mock.get.has_calls(self.flavor.id)
self.flavors_mock.get.assert_has_calls([mock.call(self.flavor.id)])
self.search_opts['flavor'] = self.flavor.id
self.servers_mock.list.assert_called_with(**self.kwargs)

View File

@ -1090,7 +1090,7 @@ class TestImageSet(TestImage):
self.assertIsNone(result)
# we'll have called this but not set anything
self.app.client_manager.image.update_image.called_once_with(
self.app.client_manager.image.update_image.assert_called_once_with(
self._image.id,
)