'Tests passing an invalid hypervisor_hostname_pattern query
parameter.'

def test_search_invalid_hostname_pattern_parameter(self):

    req = self._get_request(use_admin_context=True, url='/os-hypervisors?hypervisor_hostname_pattern=invalid~host')
    self.assertRaises(exception.ValidationError, self.controller.detail, req)
