moto/tests/test_mq/test_server.py
2023-11-30 14:55:51 -01:00

15 lines
322 B
Python

import json
import moto.server as server
from moto import mock_mq
@mock_mq
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": []}