'Tests details paging with uuid markers.'

def test_detail_pagination(self):

    req = self._get_request(use_admin_context=True, url=('/os-hypervisors/detail?limit=1&marker=%s' % TEST_HYPERS_OBJ[0].uuid))
    result = self.controller.detail(req)
    link = ('http://localhost/v2/hypervisors/detail?limit=1&marker=%s' % TEST_HYPERS_OBJ[1].uuid)
    expected = {'hypervisors': [{'cpu_info': {'arch': 'x86_64', 'features': [], 'model': '', 'topology': {'cores': 1, 'sockets': 1, 'threads': 1}, 'vendor': 'fake'}, 'current_workload': 2, 'disk_available_least': 100, 'free_disk_gb': 125, 'free_ram_mb': 5120, 'host_ip': netaddr.IPAddress('2.2.2.2'), 'hypervisor_hostname': 'hyper2', 'hypervisor_type': 'xen', 'hypervisor_version': 3, 'id': TEST_HYPERS_OBJ[1].uuid, 'local_gb': 250, 'local_gb_used': 125, 'memory_mb': 10240, 'memory_mb_used': 5120, 'running_vms': 2, 'service': {'disabled_reason': None, 'host': 'compute2', 'id': TEST_SERVICES[1].uuid}, 'state': 'up', 'status': 'enabled', 'vcpus': 4, 'vcpus_used': 2}], 'hypervisors_links': [{'href': link, 'rel': 'next'}]}
    self.assertEqual(expected, result)
