'Tests getting details for a specific hypervisor and including the
hosted servers in the response.'

@mock.patch('nova.compute.api.HostAPI.instance_get_all_by_host')
def test_hypervisors_show_with_servers(self, instance_get_all_by_host):

    instances = [{'name': 'test_server1', 'uuid': 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'}, {'name': 'test_server2', 'uuid': 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb'}]
    instance_get_all_by_host.return_value = instances
    hypervisor_id = self.compute_node_1.uuid
    subs = {'hypervisor_id': hypervisor_id, 'service_id': self.compute.service_ref.uuid}
    response = self._do_get(('os-hypervisors/%s?with_servers=1' % hypervisor_id))
    self._verify_response('hypervisors-show-with-servers-resp', subs, response, 200)
