moto/tests/test_mq/test_server.py

16 lines
382 B
Python
Raw Normal View History

2022-01-25 20:01:03 +00:00
import json
import sure # noqa # pylint: disable=unused-import
from moto import mock_mq
import moto.server as server
@mock_mq
def test_mq_list():
backend = server.create_backend_app("mq")
test_client = backend.test_client()
resp = test_client.get("/v1/brokers")
resp.status_code.should.equal(200)
json.loads(resp.data).should.equal({"brokerSummaries": []})