moto/scripts/template/test/test_server.py.j2

14 lines
309 B
Django/Jinja

"""Test different server responses."""
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("/")
assert resp.status_code == 200
assert "?" in str(resp.data)