'Tests passing an invalid value for the with_servers query parameter
to the show() method to make sure the query parameter is validated.'

def test_show_with_servers_invalid_parameter(self):

    hyper_id = self._get_hyper_id()
    req = self._get_request(use_admin_context=True, url=('/os-hypervisors/%s?with_servers=invalid' % hyper_id))
    ex = self.assertRaises(exception.ValidationError, self.controller.show, req, hyper_id)
    self.assertIn('with_servers', six.text_type(ex))
