Fix media upload parameter names. Reviewed in http://codereview.appspot.com/6374062/
diff --git a/tests/test_discovery.py b/tests/test_discovery.py
index 8d8effd..bec272c 100644
--- a/tests/test_discovery.py
+++ b/tests/test_discovery.py
@@ -562,11 +562,11 @@
self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
zoo = build('zoo', 'v1', self.http)
- fh = StringIO.StringIO('data goes here')
+ fd = StringIO.StringIO('data goes here')
# Create an upload that doesn't know the full size of the media.
upload = MediaIoBaseUpload(
- fh=fh, mimetype='image/png', chunksize=10, resumable=True)
+ fd=fd, mimetype='image/png', chunksize=10, resumable=True)
request = zoo.animals().insert(media_body=upload, body=None)
status, body = request.next_chunk(http)
@@ -583,11 +583,11 @@
self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
zoo = build('zoo', 'v1', self.http)
- fh = StringIO.StringIO('data goes here')
+ fd = StringIO.StringIO('data goes here')
# Create an upload that doesn't know the full size of the media.
upload = MediaIoBaseUpload(
- fh=fh, mimetype='image/png', chunksize=15, resumable=True)
+ fd=fd, mimetype='image/png', chunksize=15, resumable=True)
request = zoo.animals().insert(media_body=upload, body=None)
status, body = request.next_chunk(http)
@@ -604,10 +604,10 @@
zoo = build('zoo', 'v1', self.http)
# Create an upload that doesn't know the full size of the media.
- fh = StringIO.StringIO('data goes here')
+ fd = StringIO.StringIO('data goes here')
upload = MediaIoBaseUpload(
- fh=fh, mimetype='image/png', chunksize=500, resumable=True)
+ fd=fd, mimetype='image/png', chunksize=500, resumable=True)
request = zoo.animals().insert(media_body=upload, body=None)