Techdebt: Replace some missed usage of sure in CloudFront (#6666)
This commit is contained in:
parent
4104865bde
commit
1f189237f4
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user