Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3058)

Unified Diff: third_party/boto/tests/integration/s3/test_key.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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')
)
« no previous file with comments | « third_party/boto/tests/integration/s3/test_connection.py ('k') | third_party/boto/tests/integration/s3/test_multipart.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698