1import json 2import sure # noqa # pylint: disable=unused-import 3 4import moto.server as server 5from moto import mock_datapipeline 6 7""" 8Test the different server responses 9""" 10 11 12@mock_datapipeline 13def test_list_streams(): 14 backend = server.create_backend_app("datapipeline") 15 test_client = backend.test_client() 16 17 res = test_client.post( 18 "/", 19 data={"pipelineIds": ["ASdf"]}, 20 headers={"X-Amz-Target": "DataPipeline.DescribePipelines"}, 21 ) 22 23 json_data = json.loads(res.data.decode("utf-8")) 24 json_data.should.equal({"pipelineDescriptionList": []}) 25