moto/tests/test_medialive/test_server.py
Franck Ndame 808f3c748f
Implementation of core AWS Mediapackage endpoints (#3762)
* write boilerplate code

* generate boilerplate code with scaffold script

* create mediapackage channel

* remove duplicate mediapackage reference

* remove Channel key from mediapackage response

* describe_channel endpoint added

* create_origin_endpoint-added

* keys changed to camel case to fix issue

* minor changes to clean up

* minor clean up again

* implement & test delete_channel

* delete origin endpoint created; WIP-tests failing

* fix delete_origin_endpoint issue

* refactor function call

* delete origin endpoint completed; test_server tests added

* implement and test describe_origin_endpoint

* update origin endpoint added

* remove print statements

* implement test_list_origin_endpoint_succeeds

* create test name changed

* create test name changed

* changes after flake8 and black run

* url assertion added to decribe origin endpoint test

* region dependent url enabled

Co-authored-by: Anya <anya.champaneria@capablue.com>
Co-authored-by: AnyaChamp <71766808+AnyaChamp@users.noreply.github.com>
2021-03-12 14:56:25 +00:00

32 lines
711 B
Python

from __future__ import unicode_literals
import sure # noqa
import moto.server as server
from moto import mock_medialive
"""
Test the different server responses
"""
@mock_medialive
def test_medialive_list_channels():
backend = server.create_backend_app("medialive")
test_client = backend.test_client()
res = test_client.get("/prod/channels")
result = res.data.decode("utf-8")
result.should.contain('"channels": []')
@mock_medialive
def test_medialive_list_inputs():
backend = server.create_backend_app("medialive")
test_client = backend.test_client()
res = test_client.get("/prod/inputs")
result = res.data.decode("utf-8")
result.should.contain('"inputs": []')