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

Unified Diff: third_party/boto/tests/integration/gs/test_basic.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/gs/test_basic.py
===================================================================
--- third_party/boto/tests/integration/gs/test_basic.py (revision 33376)
+++ third_party/boto/tests/integration/gs/test_basic.py (working copy)
@@ -31,6 +31,7 @@
import os
import re
import StringIO
+import urllib
import xml.sax
from boto import handler
@@ -99,6 +100,11 @@
# check to make sure content read from gcs is identical to original
self.assertEqual(s1, fp.read())
fp.close()
+ # Use generate_url to get the contents
+ url = self._conn.generate_url(900, 'GET', bucket=bucket.name, key=key_name)
+ f = urllib.urlopen(url)
+ self.assertEqual(s1, f.read())
+ f.close()
# check to make sure set_contents_from_file is working
sfp = StringIO.StringIO('foo')
k.set_contents_from_file(sfp)

Powered by Google App Engine
This is Rietveld 408576698