@@ -119,7 +119,8 @@ def _get_all_buckets_non_empty_helper(self, use_default=False):
119
119
])
120
120
http = conn ._http = Http (
121
121
{'status' : '200' , 'content-type' : 'application/json' },
122
- '{{"items": [{{"name": "{0}"}}]}}' .format (BUCKET_NAME ).encode ('utf-8' ),
122
+ '{{"items": [{{"name": "{0}"}}]}}' .format (BUCKET_NAME )
123
+ .encode ('utf-8' ),
123
124
)
124
125
125
126
if use_default :
@@ -161,7 +162,7 @@ def test_miss(self):
161
162
])
162
163
http = conn ._http = Http (
163
164
{'status' : '404' , 'content-type' : 'application/json' },
164
- '{}' ,
165
+ b '{}' ,
165
166
)
166
167
self .assertRaises (NotFound , self ._callFUT , NONESUCH , connection = conn )
167
168
self .assertEqual (http ._called_with ['method' ], 'GET' )
@@ -183,7 +184,7 @@ def _get_bucket_hit_helper(self, use_default=False):
183
184
])
184
185
http = conn ._http = Http (
185
186
{'status' : '200' , 'content-type' : 'application/json' },
186
- '{"name": "%s"}' % BLOB_NAME ,
187
+ '{{ "name": "{0}"}}' . format ( BLOB_NAME ). encode ( 'utf-8' ) ,
187
188
)
188
189
189
190
if use_default :
@@ -226,7 +227,7 @@ def _create_bucket_success_helper(self, use_default=False):
226
227
])
227
228
http = conn ._http = Http (
228
229
{'status' : '200' , 'content-type' : 'application/json' },
229
- '{"name": "%s"}' % BLOB_NAME ,
230
+ '{{ "name": "{0}"}}' . format ( BLOB_NAME ). encode ( 'utf-8' ) ,
230
231
)
231
232
232
233
if use_default :
0 commit comments