16 lines
427 B
Python
16 lines
427 B
Python
|
"""Test different server responses."""
|
||
|
import sure # noqa # pylint: disable=unused-import
|
||
|
|
||
|
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"})
|
||
|
resp.status_code.should.equal(200)
|
||
|
str(resp.data).should.contain("ListDomainsResult")
|