'List hypervisors with details and with hosted servers.'

@mock.patch('nova.compute.api.HostAPI.instance_get_all_by_host')
def test_hypervisors_detail_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
    response = self._do_get('os-hypervisors/detail?with_servers=1')
    subs = {'hypervisor_id': self.compute_node_1.uuid, 'service_id': self.compute.service_ref.uuid}
    self._verify_response('hypervisors-detail-with-servers-resp', subs, response, 200)
