File: test_cancel_task.py

package info (click to toggle)
python-globus-sdk 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,144 kB
  • sloc: python: 35,242; sh: 37; makefile: 35
file content (11 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from globus_sdk.testing import get_last_request, load_response


def test_cancel_task(client):
    meta = load_response(client.cancel_task).metadata

    res = client.cancel_task(meta["task_id"])
    assert res.http_status == 200

    req = get_last_request()
    assert req.body is None