Techdebt: Replace some missed usage of sure in CloudFront (#6666)

This commit is contained in:
kbalk 2023-08-15 04:06:20 -04:00 committed by GitHub
parent 4104865bde
commit 1f189237f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,3 @@
import sure # noqa # pylint: disable=unused-import
import xmltodict
from moto import mock_cloudfront
@ -12,5 +11,5 @@ def test_cloudfront_list():
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")
assert "DistributionList" in data
assert "Items" not in data["DistributionList"]