From c6b66cb001c3a2b00d5244966fe86fd37dff099a Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Thu, 5 Mar 2020 17:22:54 +0000 Subject: [PATCH] Linting --- tests/test_core/test_auth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_core/test_auth.py b/tests/test_core/test_auth.py index 767f743dc..29273cea7 100644 --- a/tests/test_core/test_auth.py +++ b/tests/test_core/test_auth.py @@ -274,9 +274,7 @@ def test_access_denied_with_not_allowing_policy(): user_name = "test-user" inline_policy_document = { "Version": "2012-10-17", - "Statement": [ - {"Effect": "Allow", "Action": ["ec2:Run*"], "Resource": "*"} - ], + "Statement": [{"Effect": "Allow", "Action": ["ec2:Run*"], "Resource": "*"}], } access_key = create_user_with_access_key_and_inline_policy( user_name, inline_policy_document @@ -293,7 +291,9 @@ def test_access_denied_with_not_allowing_policy(): ex.exception.response["ResponseMetadata"]["HTTPStatusCode"].should.equal(403) ex.exception.response["Error"]["Message"].should.equal( "User: arn:aws:iam::{account_id}:user/{user_name} is not authorized to perform: {operation}".format( - account_id=ACCOUNT_ID, user_name=user_name, operation="ec2:DescribeInstances" + account_id=ACCOUNT_ID, + user_name=user_name, + operation="ec2:DescribeInstances", ) )