moto/scripts/template/test/test_server.py.j2
2021-11-29 14:36:24 -01:00

14 lines
370 B
Django/Jinja

"""Test different server responses."""
import sure # noqa # pylint: disable=unused-import
import moto.server as server
def test_{{ escaped_service }}_list():
backend = server.create_backend_app("{{ service }}")
test_client = backend.test_client()
resp = test_client.get("/")
resp.status_code.should.equal(200)
str(resp.data).should.contain("?")