Fix wrong assertion methods

Change-Id: Iebf4840662e87e59a06b56f1b5248728cba03c24
Story: 2010288
Task: 46261
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
This commit is contained in:
Takashi Natsume 2022-09-12 21:21:49 +09:00
parent a9b9252da3
commit ff273909da
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,
)