def METHOD_NAME(self):
    self.assertErrorResponse(
        views.ValidationErrorView,
        {
            "code": "invalid",
            "title": _("Invalid input."),
            "status": 400,
            "detail": "",
            "invalid_params": [
                {
                    "name": "foo",
                    "code": "validation-error",
                    "reason": _("Invalid data."),
                }
            ],
        },
    )