moto/tests/test_mq/test_server.py

15 lines
324 B
Python
Raw Normal View History

2022-01-25 20:01:03 +00:00
import json
import moto.server as server
2024-01-07 12:03:33 +00:00
from moto import mock_aws
2022-01-25 20:01:03 +00:00
2024-01-07 12:03:33 +00:00
@mock_aws
2022-01-25 20:01:03 +00:00
def test_mq_list():
backend = server.create_backend_app("mq")
test_client = backend.test_client()
resp = test_client.get("/v1/brokers")
assert resp.status_code == 200
assert json.loads(resp.data) == {"brokerSummaries": []}