def METHOD_NAME(client):
    """Tests cancel a task with uid 1."""
    task = client.cancel_tasks({"uids": ["1", "2"]})
    client.wait_for_task(task.task_uid)
    tasks = client.get_tasks({"types": "taskCancelation"})
    assert isinstance(task, TaskInfo)
    assert task.task_uid is not None
    assert task.index_uid is None
    assert task.type == "taskCancelation"
    assert "uids" in tasks.results[0].details["originalFilter"]
    assert "uids=1%2C2" in tasks.results[0].details["originalFilter"]