@@ -140,7 +140,7 @@ def test_get_bucket_miss(self):
140140 'b' ,
141141 'nonesuch?projection=noAcl' ,
142142 ])
143- http = client ._connection . _http = _Http (
143+ http = client ._http_internal = _Http (
144144 {'status' : '404' , 'content-type' : 'application/json' },
145145 b'{}' ,
146146 )
@@ -163,7 +163,7 @@ def test_get_bucket_hit(self):
163163 'b' ,
164164 '%s?projection=noAcl' % (BLOB_NAME ,),
165165 ])
166- http = client ._connection . _http = _Http (
166+ http = client ._http_internal = _Http (
167167 {'status' : '200' , 'content-type' : 'application/json' },
168168 '{{"name": "{0}"}}' .format (BLOB_NAME ).encode ('utf-8' ),
169169 )
@@ -187,7 +187,7 @@ def test_lookup_bucket_miss(self):
187187 'b' ,
188188 'nonesuch?projection=noAcl' ,
189189 ])
190- http = client ._connection . _http = _Http (
190+ http = client ._http_internal = _Http (
191191 {'status' : '404' , 'content-type' : 'application/json' },
192192 b'{}' ,
193193 )
@@ -211,7 +211,7 @@ def test_lookup_bucket_hit(self):
211211 'b' ,
212212 '%s?projection=noAcl' % (BLOB_NAME ,),
213213 ])
214- http = client ._connection . _http = _Http (
214+ http = client ._http_internal = _Http (
215215 {'status' : '200' , 'content-type' : 'application/json' },
216216 '{{"name": "{0}"}}' .format (BLOB_NAME ).encode ('utf-8' ),
217217 )
@@ -236,7 +236,7 @@ def test_create_bucket_conflict(self):
236236 client ._connection .API_VERSION ,
237237 'b?project=%s' % (PROJECT ,),
238238 ])
239- http = client ._connection . _http = _Http (
239+ http = client ._http_internal = _Http (
240240 {'status' : '409' , 'content-type' : 'application/json' },
241241 '{"error": {"message": "Conflict"}}' ,
242242 )
@@ -259,7 +259,7 @@ def test_create_bucket_success(self):
259259 client ._connection .API_VERSION ,
260260 'b?project=%s' % (PROJECT ,),
261261 ])
262- http = client ._connection . _http = _Http (
262+ http = client ._http_internal = _Http (
263263 {'status' : '200' , 'content-type' : 'application/json' },
264264 '{{"name": "{0}"}}' .format (BLOB_NAME ).encode ('utf-8' ),
265265 )
@@ -282,7 +282,7 @@ def test_list_buckets_empty(self):
282282 'project' : [PROJECT ],
283283 'projection' : ['noAcl' ],
284284 }
285- http = client ._connection . _http = _Http (
285+ http = client ._http_internal = _Http (
286286 {'status' : '200' , 'content-type' : 'application/json' },
287287 b'{}' ,
288288 )
@@ -319,7 +319,7 @@ def test_list_buckets_non_empty(self):
319319 client ._connection .API_VERSION ,
320320 ])
321321 URI = '/' .join ([BASE_URI , 'b?%s' % (query_params ,)])
322- http = client ._connection . _http = _Http (
322+ http = client ._http_internal = _Http (
323323 {'status' : '200' , 'content-type' : 'application/json' },
324324 '{{"items": [{{"name": "{0}"}}]}}' .format (BUCKET_NAME )
325325 .encode ('utf-8' ),
@@ -354,7 +354,7 @@ def test_list_buckets_all_arguments(self):
354354 'fields' : [FIELDS ],
355355 }
356356
357- http = client ._connection . _http = _Http (
357+ http = client ._http_internal = _Http (
358358 {'status' : '200' , 'content-type' : 'application/json' },
359359 '{"items": []}' ,
360360 )
0 commit comments