| Index: third_party/boto/tests/integration/s3/test_key.py
|
| ===================================================================
|
| --- third_party/boto/tests/integration/s3/test_key.py (revision 33376)
|
| +++ third_party/boto/tests/integration/s3/test_key.py (working copy)
|
| @@ -401,14 +401,16 @@
|
| key = self.bucket.new_key('test_header_encoding')
|
|
|
| key.set_metadata('Cache-control', 'public, max-age=500')
|
| + key.set_metadata('Test-Plus', u'A plus (+)')
|
| key.set_metadata('Content-disposition', u'filename=Schöne Zeit.txt')
|
| key.set_contents_from_string('foo')
|
|
|
| check = self.bucket.get_key('test_header_encoding')
|
|
|
| self.assertEqual(check.cache_control, 'public, max-age=500')
|
| - self.assertEqual(check.content_disposition, 'filename=Sch%C3%B6ne+Zeit.txt')
|
| + self.assertEqual(check.get_metadata('test-plus'), 'A plus (+)')
|
| + self.assertEqual(check.content_disposition, 'filename=Sch%C3%B6ne%20Zeit.txt')
|
| self.assertEqual(
|
| - urllib.unquote_plus(check.content_disposition).decode('utf-8'),
|
| + urllib.unquote(check.content_disposition).decode('utf-8'),
|
| 'filename=Schöne Zeit.txt'.decode('utf-8')
|
| )
|
|
|