Add S3 LocationConstraint to Lambda tests

This commit is contained in:
Bert Blommers 2020-02-02 11:48:32 +00:00
commit a86cba79de
3 changed files with 95 additions and 55 deletions

View file

@ -1546,7 +1546,8 @@ def test_bucket_create_force_us_east_1():
s3 = boto3.resource("s3", region_name=DEFAULT_REGION_NAME)
with assert_raises(ClientError) as exc:
s3.create_bucket(
Bucket="blah", CreateBucketConfiguration={"LocationConstraint": DEFAULT_REGION_NAME}
Bucket="blah",
CreateBucketConfiguration={"LocationConstraint": DEFAULT_REGION_NAME},
)
exc.exception.response["Error"]["Code"].should.equal("InvalidLocationConstraint")