summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlli Pottonen <olli.pottonen@iki.fi>2014-08-09 09:09:23 +1000
committerOlli Pottonen <olli.pottonen@iki.fi>2014-08-09 09:09:23 +1000
commitea5b329183449762c8c9bcf4b0baa0a65ba06238 (patch)
tree9857de04b69466e905695cc13905e4c3083c547c /tests
parent36f9e01ec1aafc1ba3412f3845a63b91ee73fcde (diff)
downloadboto-ea5b329183449762c8c9bcf4b0baa0a65ba06238.tar.gz
Do not percent-encode white space character in S3 metadata.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/s3/test_key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/s3/test_key.py b/tests/integration/s3/test_key.py
index 139ebae7..0ce15076 100644
--- a/tests/integration/s3/test_key.py
+++ b/tests/integration/s3/test_key.py
@@ -408,13 +408,13 @@ class S3KeyTest(unittest.TestCase):
key.set_metadata('Content-Type', 'application/pdf')
self.assertEqual(key.content_type, 'application/pdf')
key.set_metadata('X-Robots-Tag', 'all')
- key.set_metadata('Expires', 'Thu, 01 Dec 1994 16:00:00 GMT')
+ key.set_metadata('Expires', u'Thu, 01 Dec 1994 16:00:00 GMT')
key.set_contents_from_string('foo')
check = self.bucket.get_key('test_header_encoding')
remote_metadata = check._get_remote_metadata()
- self.assertEqual(check.cache_control, 'public,%20max-age=500')
+ self.assertEqual(check.cache_control, 'public, max-age=500')
self.assertEqual(remote_metadata['cache-control'], 'public,%20max-age=500')
self.assertEqual(check.get_metadata('test-plus'), 'A plus (+)')
self.assertEqual(check.content_disposition, 'filename=Sch%C3%B6ne%20Zeit.txt')