From b0eb7b263e9a9f0aa1d33ef8cee54cba64a7976d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Bataille?= Date: Tue, 20 Nov 2018 19:42:51 +0100 Subject: [PATCH] test(#1959): us-east-1 located bucket should return a None LocationConstraint --- tests/test_s3/test_s3.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_s3/test_s3.py b/tests/test_s3/test_s3.py index 18fb768ef..6541e77b8 100644 --- a/tests/test_s3/test_s3.py +++ b/tests/test_s3/test_s3.py @@ -977,6 +977,15 @@ def test_bucket_location(): bucket.get_location().should.equal("us-west-2") +@mock_s3_deprecated +def test_bucket_location_us_east_1(): + cli = boto3.client('s3') + bucket_name = 'mybucket' + # No LocationConstraint ==> us-east-1 + cli.create_bucket(Bucket=bucket_name) + cli.get_bucket_location(Bucket=bucket_name)['LocationConstraint'].should.equal(None) + + @mock_s3_deprecated def test_ranged_get(): conn = boto.connect_s3()