moto/tests/test_mediaconnect/test_server.py

20 lines
435 B
Python
Raw Normal View History

2021-10-18 19:44:29 +00:00
import sure # noqa # pylint: disable=unused-import
import moto.server as server
from moto import mock_mediaconnect
"""
Test the different server responses
"""
@mock_mediaconnect
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")
result.should.contain('"flows": []')