2021-11-17 20:09:24 +00:00
|
|
|
"""Test different server responses."""
|
|
|
|
import moto.server as server
|
|
|
|
from moto import mock_sdb
|
|
|
|
|
|
|
|
|
|
|
|
@mock_sdb
|
|
|
|
def test_sdb_list():
|
|
|
|
backend = server.create_backend_app("sdb")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
resp = test_client.post("/", data={"Action": "ListDomains"})
|
2023-08-04 14:04:42 +00:00
|
|
|
assert resp.status_code == 200
|
|
|
|
assert "ListDomainsResult" in str(resp.data)
|