def METHOD_NAME(self):
    # Using `failure@example.com` as the email causes an exception, see:
    # https://github.com/mozilla/basket-example#tips
    secret = bytes(self.tito_event.security_token, "utf-8")
    data = {
        "answers": [
            {
                "question": {"id": self.tito_event.newsletter_question_id},
                "response": ["yes"],
            },
        ],
        "email": "failure@example.com",
    } | self._webhook_data()
    factory = RequestFactory()
    request = factory.post(
        self.url,
        data=json.dumps(data),
        content_type="application/json",
        HTTP_X_WEBHOOK_NAME="ticket.completed",
    )
    request.META["HTTP_TITO_SIGNATURE"] = sign_tito_request(secret, request.body)
    with self.assertLogs(logger="networkapi.events.views", level="ERROR") as cm:
        response = tito_ticket_completed(request)
        self.assertEqual(response.status_code, 202)
        self.assertIn("Basket subscription from Tito webhook failed", cm.output[0])