Merge pull request #135 from jkorvin/fix

Fix If-Match test

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yehuda Sadeh 2017-03-07 13:46:16 -08:00 committed by GitHub
commit 297f3d9c8c

View file

@ -2382,7 +2382,7 @@ def test_get_object_ifmatch_failed():
key = bucket.new_key('foo') key = bucket.new_key('foo')
key.set_contents_from_string('bar') 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.status, 412)
eq(e.reason, 'Precondition Failed') eq(e.reason, 'Precondition Failed')