def METHOD_NAME(self, pyramid_request):
    exception = HAPIError(sentinel.message)
    template_data = ExceptionViews(exception, pyramid_request).hapi_error()
    assert pyramid_request.response.status_int == 500
    assert template_data == {"message": sentinel.message}