869b3c45c1
* Adds initial models and implements create_flow endpoint. * Updates README with a Releases section * Removes unused import * Adds __init__.py files to MediaLive and MediaConnect test directories. * Adds list_flows endpoint and tests. * Adds describe_flow endpoint and tests. * Adds delete_flow endpoint and tests. * Adds URLs * Adds start_flow and stop_flow endpoints and tests. * Adds tag_resource and list_tags_for_resource endpoints and tests. * Uses unquote for ARNs
22 lines
444 B
Python
22 lines
444 B
Python
from __future__ import unicode_literals
|
|
|
|
import sure # noqa
|
|
|
|
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": []')
|