File: test_lock_endpoint.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 (11 lines) | stat: -rw-r--r-- 372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import globus_sdk
from globus_sdk.testing import load_response


def test_lock_endpoint(compute_client_v3: globus_sdk.ComputeClientV3):
    meta = load_response(compute_client_v3.lock_endpoint).metadata

    res = compute_client_v3.lock_endpoint(endpoint_id=meta["endpoint_id"])

    assert res.http_status == 200
    assert res.data["endpoint_id"] == meta["endpoint_id"]