Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #112 - Check if bucket exists for path='' #116
Jan 26, 2016
I'm not quite sure that this test does what you think it's testing; I don't think S3ResponseError could ever be raised.
When auto_create_bucket is False (the default), then in the real non-test code, get_bucket(validate=False) is called inside _get_or_create_bucket(), and with validate=False, no actual call ever goes to S3 that could return the S3ResponseError. Thus this is a no-op, but I think in this case you actually /do/ want it it actually check the buckets existence.
Also note that I'm trying to get S3Boto3 up to date with the commits, and figuring out how to properly emulate this is my last blocker to getting you an update pull request.