tests/functional/services/compute/v2/test_get_function.py
raw| 1 | import globus_sdk |
| 2 | from globus_sdk.testing import load_response |
| 3 | |
| 4 | |
| 5 | def test_get_function(compute_client_v2: globus_sdk.ComputeClientV2): |
| 6 | meta = load_response(compute_client_v2.get_function).metadata |
| 7 | res = compute_client_v2.get_function(function_id=meta["function_id"]) |
| 8 | assert res.http_status == 200 |
| 9 | assert res.data["function_uuid"] == meta["function_id"] |
| 10 | assert res.data["function_name"] == meta["function_name"] |
| 11 | assert res.data["function_code"] == meta["function_code"] |