2023-08-13 16:51:18 +00:00
|
|
|
import json
|
2023-11-30 15:55:51 +00:00
|
|
|
|
2021-02-25 16:07:26 +00:00
|
|
|
import moto.server as server
|
2024-01-07 12:03:33 +00:00
|
|
|
from moto import mock_aws
|
2021-02-25 16:07:26 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
Test the different server responses
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2024-01-07 12:03:33 +00:00
|
|
|
@mock_aws
|
2021-02-25 16:07:26 +00:00
|
|
|
def test_mediaconnect_list_flows():
|
|
|
|
backend = server.create_backend_app("mediaconnect")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
res = test_client.get("/v1/flows")
|
|
|
|
|
|
|
|
result = res.data.decode("utf-8")
|
2023-08-13 16:51:18 +00:00
|
|
|
assert json.loads(result) == {"flows": []}
|