def METHOD_NAME(self):
    self.assertErrorResponse(
        views.NotAcceptableView,
        {
            "code": "not_acceptable",
            "title": _("Could not satisfy the request Accept header."),
            "status": 406,
            "detail": _("Content negotation failed"),
        },
    )