import globus_sdk
from globus_sdk._testing import load_response


def test_delete_function(compute_client_v2: globus_sdk.ComputeClientV2):
    meta = load_response(compute_client_v2.delete_function).metadata
    res = compute_client_v2.delete_function(function_id=meta["function_id"])
    assert res.http_status == 200
    assert res.data == {"result": 302}
