Merge "Fix wrong assertion methods"
This commit is contained in:
commit
5826802793
@ -4634,7 +4634,7 @@ class TestServerList(_TestServerList):
|
|||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
columns, data = self.cmd.take_action(parsed_args)
|
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.search_opts['flavor'] = self.flavor.id
|
||||||
self.servers_mock.list.assert_called_with(**self.kwargs)
|
self.servers_mock.list.assert_called_with(**self.kwargs)
|
||||||
|
@ -1090,7 +1090,7 @@ class TestImageSet(TestImage):
|
|||||||
|
|
||||||
self.assertIsNone(result)
|
self.assertIsNone(result)
|
||||||
# we'll have called this but not set anything
|
# 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,
|
self._image.id,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user