moto/tests/test_servicediscovery/test_server.py

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

16 lines
456 B
Python
Raw Normal View History

import json
import sure # noqa # pylint: disable=unused-import
import moto.server as server
def test_servicediscovery_list():
backend = server.create_backend_app("servicediscovery")
test_client = backend.test_client()
headers = {"X-Amz-Target": "Route53AutoNaming_v20170314.ListNamespaces"}
resp = test_client.get("/", headers=headers)
resp.status_code.should.equal(200)
json.loads(resp.data).should.equal({"Namespaces": []})