From 7d0733ad1026e8d251e90d82aa4a3afdafbd51b5 Mon Sep 17 00:00:00 2001 From: dbfr3qs Date: Thu, 18 Jan 2018 19:40:24 +1300 Subject: [PATCH] hack tests now that boto get_templates returns ordered dicts --- .../test_cloudformation_stack_crud_boto3.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py b/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py index 1f3bfdec7..781e89e2b 100644 --- a/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py +++ b/tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py @@ -160,7 +160,7 @@ def test_boto3_create_stack(): TemplateBody=dummy_template_json, ) - cf_conn.get_template(StackName="test_stack")['TemplateBody'].should.equal( + json.loads(json.dumps(cf_conn.get_template(StackName="test_stack")['TemplateBody'])).should.equal( dummy_template) @@ -270,9 +270,10 @@ def test_create_stack_from_s3_url(): StackName='stack_from_url', TemplateURL=key_url, ) - - cf_conn.get_template(StackName="stack_from_url")[ - 'TemplateBody'].should.equal(dummy_template) + # from IPython import embed + # embed() + json.loads(json.dumps(cf_conn.get_template(StackName="stack_from_url")[ + 'TemplateBody'])).should.equal(dummy_template) @mock_cloudformation @@ -306,8 +307,8 @@ def test_update_stack_from_s3_url(): TemplateURL=key_url, ) - cf_conn.get_template(StackName="update_stack_from_url")[ - 'TemplateBody'].should.equal(dummy_update_template) + json.loads(json.dumps(cf_conn.get_template(StackName="update_stack_from_url")[ + 'TemplateBody'])).should.equal(dummy_update_template) @mock_cloudformation