| 1 |
from globus_sdk.testing import get_last_request, load_response |
| 2 |
|
| 3 |
|
| 4 |
def test_list_stream_access_points(client): |
| 5 |
meta = load_response(client.list_stream_access_points).metadata |
| 6 |
|
| 7 |
res = client.list_stream_access_points() |
| 8 |
assert res.http_status == 200 |
| 9 |
list_results = list(res) |
| 10 |
|
| 11 |
assert len(list_results) == 2 |
| 12 |
for stream_access_point in list_results: |
| 13 |
assert stream_access_point["type"] == "StreamAccessPoint" |
| 14 |
assert stream_access_point["id"] in meta["access_point_ids"] |
| 15 |
|
| 16 |
req = get_last_request() |
| 17 |
assert req.body is None |