From 9169b87748d568b630679cd09cd0cd45ca2da187 Mon Sep 17 00:00:00 2001 From: Cat Cai Date: Tue, 12 Nov 2019 11:16:34 -0800 Subject: [PATCH] Tests pass --- tests/test_ec2/test_vpcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ec2/test_vpcs.py b/tests/test_ec2/test_vpcs.py index 3643e219..c8a93133 100644 --- a/tests/test_ec2/test_vpcs.py +++ b/tests/test_ec2/test_vpcs.py @@ -750,7 +750,7 @@ def test_describe_classic_link_multiple(): expected = [{"VpcId": vpc1.id, "ClassicLinkDnsSupported": False}, {"VpcId": vpc2.id, "ClassicLinkDnsSupported": True}] # Ensure response is sorted, because they can come in random order - assert sorted(response.get("Vpcs")) == sorted(expected) + assert response.get("Vpcs").sort(key=lambda x: x["VpcId"]) == expected.sort(key=lambda x: x["VpcId"]) @mock_ec2 @@ -812,4 +812,4 @@ def test_describe_classic_link_dns_support_multiple(): expected = [{"VpcId": vpc1.id, "ClassicLinkDnsSupported": False}, {"VpcId": vpc2.id, "ClassicLinkDnsSupported": True}] # Ensure response is sorted, because they can come in random order - assert sorted(response.get("Vpcs")) == sorted(expected) + assert response.get("Vpcs").sort(key=lambda x: x["VpcId"]) == expected.sort(key=lambda x: x["VpcId"])