From e8d245f6a10128fa3ea4bab9ebeee103421b6ffe Mon Sep 17 00:00:00 2001 From: Declan Shanaghy Date: Mon, 15 Aug 2016 12:36:39 -0700 Subject: [PATCH] Fix tests for python3 --- tests/test_cloudformation/test_stack_parsing.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_cloudformation/test_stack_parsing.py b/tests/test_cloudformation/test_stack_parsing.py index 1174a4bee..42208810f 100644 --- a/tests/test_cloudformation/test_stack_parsing.py +++ b/tests/test_cloudformation/test_stack_parsing.py @@ -91,14 +91,12 @@ def test_parse_stack_resources(): region_name='us-west-1') stack.resource_map.should.have.length_of(2) - list(stack.resource_map.keys())[0].should.equal('Queue') - list(stack.resource_map.keys())[1].should.equal('S3Bucket') - queue = list(stack.resource_map.values())[0] + queue = stack.resource_map['Queue'] queue.should.be.a(Queue) queue.name.should.equal("my-queue") - bucket = list(stack.resource_map.values())[1] + bucket = stack.resource_map['S3Bucket'] bucket.should.be.a(FakeBucket) bucket.physical_resource_id.should.equal(bucket.name)