def METHOD_NAME(self):
    project = self.project  # force creation
    url = f"/plugins/bitbucket/organizations/{project.organization.id}/webhook/"
    Repository.objects.create(
        organization_id=project.organization.id,
        external_id="{c78dfb25-7882-4550-97b1-4e0d38f32859}",
        provider="bitbucket",
        name="maxbittker/newsdiffs",
    )
    response = self.client.post(
        path=url,
        data=PUSH_EVENT_EXAMPLE,
        content_type="application/json",
        HTTP_X_EVENT_KEY="repo:push",
        REMOTE_ADDR=BITBUCKET_IP,
    )
    assert response.status_code == 204
    commit_list = list(
        Commit.objects.filter(organization_id=project.organization_id)
        .select_related("author")
        .order_by("-date_added")
    )
    assert len(commit_list) == 1
    commit = commit_list[0]
    assert commit.key == "e0e377d186e4f0e937bdb487a23384fe002df649"
    assert commit.message == "README.md edited online with Bitbucket"
    assert commit.author.name == "Max Bittker"
    assert commit.author.email == "max@getsentry.com"
    assert commit.author.external_id is None
    assert commit.date_added == datetime(2017, 5, 24, 1, 5, 47, tzinfo=timezone.utc)