Fix If-Match test

According to https://tools.ietf.org/html/rfc7232, If-Match field should looks like QUOTES ETag QUOTES.

Signed-off-by: Evgenii Gorinov <korvin.lucky@gmail.com>
This commit is contained in:
Evgenii Gorinov 2016-10-31 18:19:06 +03:00 committed by Evgenii Gorinov
parent 953f2b4625
commit 73fb771553

View file

@ -2310,7 +2310,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')