Fix issues around S3 deletion. Closes #606.
This commit is contained in:
parent
5415091d14
commit
bd7327fca2
3 changed files with 14 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue