moto/tests/test_rds/test_server.py

21 lines
423 B
Python
Raw Normal View History

2015-01-09 03:18:06 +00:00
from __future__ import unicode_literals
import sure # noqa
import moto.server as server
from moto import mock_rds
2019-10-31 15:44:26 +00:00
"""
2015-01-09 03:18:06 +00:00
Test the different server responses
2019-10-31 15:44:26 +00:00
"""
2015-01-09 03:18:06 +00:00
@mock_rds
def test_list_databases():
backend = server.create_backend_app("rds")
test_client = backend.test_client()
2019-10-31 15:44:26 +00:00
res = test_client.get("/?Action=DescribeDBInstances")
2015-01-09 03:18:06 +00:00
res.data.decode("utf-8").should.contain("<DescribeDBInstancesResult>")