forked from TrueCloudLab/s3-tests
Merge pull request #135 from jkorvin/fix
Fix If-Match test Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
297f3d9c8c
1 changed files with 1 additions and 1 deletions
|
@ -2382,7 +2382,7 @@ def test_get_object_ifmatch_failed():
|
|||
key = bucket.new_key('foo')
|
||||
key.set_contents_from_string('bar')
|
||||
|
||||
e = assert_raises(boto.exception.S3ResponseError, bucket.get_key, 'foo', headers={'If-Match': 'ABCORZ'})
|
||||
e = assert_raises(boto.exception.S3ResponseError, bucket.get_key, 'foo', headers={'If-Match': '"ABCORZ"'})
|
||||
eq(e.status, 412)
|
||||
eq(e.reason, 'Precondition Failed')
|
||||
|
||||
|
|
Loading…
Reference in a new issue