17 lines
489 B
Python
17 lines
489 B
Python
import sure # noqa # pylint: disable=unused-import
|
|
import xmltodict
|
|
|
|
from moto import mock_cloudfront
|
|
import moto.server as server
|
|
|
|
|
|
@mock_cloudfront
|
|
def test_cloudfront_list():
|
|
backend = server.create_backend_app("cloudfront")
|
|
test_client = backend.test_client()
|
|
|
|
res = test_client.get("/2020-05-31/distribution")
|
|
data = xmltodict.parse(res.data, dict_constructor=dict)
|
|
data.should.have.key("DistributionList")
|
|
data["DistributionList"].shouldnt.have.key("Items")
|