moto/tests/test_mediastore/test_server.py
2022-03-10 13:39:59 -01:00

22 lines
508 B
Python

import sure # noqa # pylint: disable=unused-import
import moto.server as server
from moto import mock_mediastore
"""
Test the different server responses
"""
@mock_mediastore
def test_mediastore_lists_containers():
backend = server.create_backend_app("mediastore")
test_client = backend.test_client()
res = test_client.get(
"/", headers={"X-Amz-Target": "MediaStore_20170901.ListContainers"}
)
result = res.data.decode("utf-8")
result.should.contain('"Containers": []')