2021-08-24 15:49:45 +00:00
|
|
|
"""Test different server responses."""
|
2017-09-19 18:14:14 +00:00
|
|
|
|
|
|
|
import moto.server as server
|
|
|
|
|
|
|
|
|
2017-10-24 18:45:39 +00:00
|
|
|
def test_{{ escaped_service }}_list():
|
2017-09-19 18:14:14 +00:00
|
|
|
backend = server.create_backend_app("{{ service }}")
|
|
|
|
test_client = backend.test_client()
|
2021-11-29 15:36:24 +00:00
|
|
|
|
|
|
|
resp = test_client.get("/")
|
2023-03-11 15:37:39 +00:00
|
|
|
|
|
|
|
assert resp.status_code == 200
|
|
|
|
assert "?" in str(resp.data)
|