From 05c6fc673896c9a500bf5cb7f6fa34510db1d50b Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Fri, 11 Nov 2016 17:22:45 -0500 Subject: [PATCH] Fix tests for py3. --- tests/test_ec2/test_spot_fleet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_ec2/test_spot_fleet.py b/tests/test_ec2/test_spot_fleet.py index f33784fc3..5b51ae68a 100644 --- a/tests/test_ec2/test_spot_fleet.py +++ b/tests/test_ec2/test_spot_fleet.py @@ -135,7 +135,8 @@ def test_create_diversified_spot_fleet(): instance_res = conn.describe_spot_fleet_instances(SpotFleetRequestId=spot_fleet_id) instances = instance_res['ActiveInstances'] len(instances).should.equal(2) - instances[0]['InstanceType'].should.equal("t2.small") + instance_types = set([instance['InstanceType'] for instance in instances]) + instance_types.should.equal(set(["t2.small", "t2.large"])) instances[0]['InstanceId'].should.contain("i-")