'This is a poorly named test, it\'s really checking the 404 case where
there is no match for the hostname pattern.'

def test_servers_with_non_integer_hypervisor_id(self):

    req = self._get_request(use_admin_context=True, url='/os-hypervisors?with_servers=yes&hypervisor_hostname_pattern=shenzhen')
    with mock.patch.object(self.controller.host_api, 'compute_node_search_by_hypervisor', return_value=objects.ComputeNodeList()) as s:
        self.assertRaises(exc.HTTPNotFound, self.controller.index, req)
        s.assert_called_once_with(req.environ['nova.context'], 'shenzhen')
