'This is a negative test to validate that trying to list hypervisors
with a hostname pattern and paging parameters results in a 400 error.'

def test_list_with_hostname_pattern_and_paging_parameters(self):

    req = self._get_request(use_admin_context=True, url=('/os-hypervisors?hypervisor_hostname_pattern=foo&limit=1&marker=%s' % uuids.marker))
    ex = self.assertRaises(exc.HTTPBadRequest, self.controller.index, req)
    self.assertIn('Paging    over    hypervisors    with    the    hypervisor_hostname_pattern    query    parameter    is    not    supported.', six.text_type(ex))
