summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlli Pottonen <olli.pottonen@iki.fi>2014-08-15 12:36:39 +1000
committerOlli Pottonen <olli.pottonen@iki.fi>2014-08-15 12:36:39 +1000
commit3cf9199df30d5981ae75d9f31dc820cc24e0fd45 (patch)
tree149a727616d12725278d13c07467df7cab2af3d3 /tests
parentea5b329183449762c8c9bcf4b0baa0a65ba06238 (diff)
downloadboto-3cf9199df30d5981ae75d9f31dc820cc24e0fd45.tar.gz
Encode ' ' as '%20' after all.
Revert earlier commit; encode space as %20 in headers, and modify tests accordingly.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/s3/test_key.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/integration/s3/test_key.py b/tests/integration/s3/test_key.py
index 0ce15076..f7a67b2b 100644
--- a/tests/integration/s3/test_key.py
+++ b/tests/integration/s3/test_key.py
@@ -414,7 +414,8 @@ class S3KeyTest(unittest.TestCase):
check = self.bucket.get_key('test_header_encoding')
remote_metadata = check._get_remote_metadata()
- self.assertEqual(check.cache_control, 'public, max-age=500')
+ # TODO: investigate whether encoding ' ' as '%20' makes sense
+ self.assertEqual(check.cache_control, 'public,%20max-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')
@@ -427,8 +428,8 @@ class S3KeyTest(unittest.TestCase):
self.assertEqual(remote_metadata['content-type'], 'application/pdf')
self.assertEqual(check.x_robots_tag, 'all')
self.assertEqual(remote_metadata['x-robots-tag'], 'all')
- self.assertEqual(check.expires, 'Thu, 01 Dec 1994 16:00:00 GMT')
- self.assertEqual(remote_metadata['expires'], 'Thu, 01 Dec 1994 16:00:00 GMT')
+ self.assertEqual(check.expires, 'Thu,%2001%20Dec%201994%2016:00:00%20GMT')
+ self.assertEqual(remote_metadata['expires'], 'Thu,%2001%20Dec%201994%2016:00:00%20GMT')
expected = u'filename=Schöne Zeit.txt'
if six.PY2: