test(#1959): us-east-1 located bucket should return a None LocationConstraint

This commit is contained in:
Grégory Bataille 2018-11-20 19:42:51 +01:00
parent 437eb892e2
commit b0eb7b263e

View File

@ -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()