'Tests index paging with uuid markers.'

def test_index_pagination(self):

    req = self._get_request(use_admin_context=True, url=('/os-hypervisors?limit=1&marker=%s' % TEST_HYPERS_OBJ[0].uuid))
    result = self.controller.index(req)
    link = ('http://localhost/v2/hypervisors?limit=1&marker=%s' % TEST_HYPERS_OBJ[1].uuid)
    expected = {'hypervisors': [{'hypervisor_hostname': 'hyper2', 'id': TEST_HYPERS_OBJ[1].uuid, 'state': 'up', 'status': 'enabled'}], 'hypervisors_links': [{'href': link, 'rel': 'next'}]}
    self.assertEqual(expected, result)
