File: test_get_tunnel_events.py

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


def test_get_tunnel(client):
    meta = load_response(client.get_tunnel_events).metadata
    res = client.get_tunnel_events(meta["tunnel_id"])
    assert res.http_status == 200
    assert res["data"][0]["type"] == "TunnelEvent"
    assert res["data"][1]["type"] == "TunnelEvent"

    req = get_last_request()
    assert req.body is None