Fix issues around S3 deletion. Closes #606.

This commit is contained in:
Steve Pulec 2016-05-08 17:14:29 -04:00
commit bd7327fca2
3 changed files with 14 additions and 11 deletions

View file

@ -501,7 +501,8 @@ def test_delete_missing_key():
conn = boto.connect_s3('the_key', 'the_secret')
bucket = conn.create_bucket('foobar')
bucket.delete_key.when.called_with('foobar').should.throw(S3ResponseError)
deleted_key = bucket.delete_key("foobar")
deleted_key.key.should.equal("foobar")
@mock_s3