moto/tests/test_mediastoredata/test_server.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
362 B
Python
Raw Permalink Normal View History

import json
import moto.server as server
2024-01-07 12:03:33 +00:00
from moto import mock_aws
"""
Test the different server responses
"""
2024-01-07 12:03:33 +00:00
@mock_aws
def test_mediastore_lists_containers():
backend = server.create_backend_app("mediastore-data")
test_client = backend.test_client()
body = test_client.get("/").data.decode("utf-8")
assert json.loads(body) == {"Items": []}