def METHOD_NAME(self, send_mail):
    self.sentry_app.update(status=SentryAppStatus.PUBLISHED)
    response = self.client.post(self.url, format="json")
    assert response.status_code == 400
    assert response.data["detail"] == "Cannot publish already published integration."
    send_mail.asssert_not_called()