def METHOD_NAME(self):
    self.assertErrorResponse(
        views.MethodNotAllowedView,
        {
            "code": "method_not_allowed",
            "title": _('Method "{method}" not allowed.'),
            "status": 405,
            "detail": _('Method "{method}" not allowed.').format(method="GET"),
        },
    )