File tree Expand file tree Collapse file tree
openstackclient/tests/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4634,7 +4634,7 @@ def test_server_list_with_flavor(self):
46344634 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
46354635 columns , data = self .cmd .take_action (parsed_args )
46364636
4637- self .flavors_mock .get .has_calls ( self .flavor .id )
4637+ self .flavors_mock .get .assert_has_calls ([ mock . call ( self .flavor .id )] )
46384638
46394639 self .search_opts ['flavor' ] = self .flavor .id
46404640 self .servers_mock .list .assert_called_with (** self .kwargs )
Original file line number Diff line number Diff line change @@ -1090,7 +1090,7 @@ def test_image_set_no_options(self):
10901090
10911091 self .assertIsNone (result )
10921092 # we'll have called this but not set anything
1093- self .app .client_manager .image .update_image .called_once_with (
1093+ self .app .client_manager .image .update_image .assert_called_once_with (
10941094 self ._image .id ,
10951095 )
10961096
You can’t perform that action at this time.
0 commit comments