@@ -131,7 +131,8 @@ def test_hypervisor_list_matching_option_found(self):
131131 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
132132
133133 # Fake the return value of search()
134- self .sdk_client .find_hypervisor .return_value = [self .hypervisors [0 ]]
134+ self .sdk_client .hypervisors .return_value = [self .hypervisors [0 ]]
135+
135136 self .data = (
136137 (
137138 self .hypervisors [0 ].id ,
@@ -147,10 +148,9 @@ def test_hypervisor_list_matching_option_found(self):
147148 # containing the data to be listed.
148149 columns , data = self .cmd .take_action (parsed_args )
149150
150- self .sdk_client .find_hypervisor .assert_called_with (
151- self .hypervisors [0 ].name ,
152- ignore_missing = False
153- )
151+ self .sdk_client .hypervisors .assert_called_with (
152+ hypervisor_hostname_pattern = self .hypervisors [0 ].name ,
153+ details = True )
154154 self .assertEqual (self .columns , columns )
155155 self .assertEqual (self .data , tuple (data ))
156156
@@ -164,7 +164,7 @@ def test_hypervisor_list_matching_option_not_found(self):
164164 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
165165
166166 # Fake exception raised from search()
167- self .sdk_client .find_hypervisor .side_effect = \
167+ self .sdk_client .hypervisors .side_effect = \
168168 exceptions .NotFound (None )
169169
170170 self .assertRaises (exceptions .NotFound ,
0 commit comments