def METHOD_NAME(self, app):
    another_user = get(User)
    another_project = self._get_project(owners=[another_user])
    another_build = get(
        Build,
        project=another_project,
        version=another_project.versions.first(),
        state=BUILD_STATE_INSTALLING,
    )
    self.client.force_login(another_user)
    url = reverse("builds_detail", args=[self.project.slug, self.build.pk])
    resp = self.client.post(url)
    self.assertEqual(resp.status_code, 403)
    app.control.revoke.assert_not_called()
    url = reverse("builds_detail", args=[another_project.slug, self.build.pk])
    resp = self.client.post(url)
    self.assertEqual(resp.status_code, 404)
    app.control.revoke.assert_not_called()
    url = reverse("builds_detail", args=[another_project.slug, another_build.pk])
    resp = self.client.post(url)
    self.assertEqual(resp.status_code, 302)
    app.control.revoke.assert_called_once_with(
        another_build.task_id, signal=mock.ANY, terminate=True
    )