File: test_get_stream_access_point.py

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


def test_get_tunnel(client):
    meta = load_response(client.get_stream_access_point).metadata

    res = client.get_stream_access_point(meta["access_point_id"])
    assert res.http_status == 200
    assert res["data"]["type"] == "StreamAccessPoint"
    assert res["data"]["id"] == meta["access_point_id"]

    req = get_last_request()
    assert req.body is None