fix field names for py26 in s3 test

This commit is contained in:
Konstantinos Koukopoulos 2015-02-10 17:31:40 +02:00
parent 2dd174b577
commit 27a022f695

View File

@ -176,9 +176,9 @@ def test_multipart_invalid_order():
# last part, can be less than 5 MB
part2 = b'1'
etag2 = multipart.upload_part_from_file(BytesIO(part2), 2).etag
xml = "<Part><PartNumber>{}</PartNumber><ETag>{}</ETag></Part>"
xml = "<Part><PartNumber>{0}</PartNumber><ETag>{1}</ETag></Part>"
xml = xml.format(2, etag2) + xml.format(1, etag1)
xml = "<CompleteMultipartUpload>{}</CompleteMultipartUpload>".format(xml)
xml = "<CompleteMultipartUpload>{0}</CompleteMultipartUpload>".format(xml)
bucket.complete_multipart_upload.when.called_with(
multipart.key_name, multipart.id, xml).should.throw(S3ResponseError)