moto/tests/test_kinesisvideo/test_server.py
Toshiya Kawasaki 25161c0c18
Add kinesisvideo (#3271)
* kinesisvideo create_stream

* add kinesis video stream description

* add kinesisvideo describe_stream

* add kinesisvideo list_streams

* add kinesisvideo delete_stream

* remove unused comment

* remove duplicated definition

* add kinesis video exceptions

* pass region_name to kinesisvideo client in test

* fix kinesisvideo url path

* resolve conflict of kinesisvideo url and kinesis url

* specify region name to kinesisvideobackend

* Add get-dataendpoint to kinesisvideo

* include stream name in ResourceInUseException of kinesisvideo

* use ACCOUNT_ID from moto.core in kinesisvideo

* add server test for kinesisvideo

* split up kinesisvideo test
2020-09-02 08:51:51 +01:00

19 lines
407 B
Python

from __future__ import unicode_literals
import sure # noqa
import moto.server as server
from moto import mock_kinesisvideo
"""
Test the different server responses
"""
@mock_kinesisvideo
def test_kinesisvideo_server_is_up():
backend = server.create_backend_app("kinesisvideo")
test_client = backend.test_client()
res = test_client.post("/listStreams")
res.status_code.should.equal(200)