File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -384,12 +384,12 @@ def test_generate_signed_url_w_credentials(self):
384384 self ._basic_generate_signed_url_helper (credentials = credentials )
385385
386386 def test_generate_signed_url_non_ascii (self ):
387- BLOB_NAME = u'Caf \xe9 .txt'
387+ BLOB_NAME = u'\u0410 \u043a \u043a \u043e \u0440 \u0434 \u044b .txt'
388388 EXPIRATION = '2014-10-16T20:34:37.000Z'
389389 connection = _Connection ()
390390 client = _Client (connection )
391391 bucket = _Bucket (client )
392- blob = self ._make_one (BLOB_NAME . encode ( 'utf-8' ) , bucket = bucket )
392+ blob = self ._make_one (BLOB_NAME , bucket = bucket )
393393 URI = (u'http://example.com/abucket/a-blob-name?Signature=DEADBEEF'
394394 u'&Expiration=2014-10-16T20:34:37.000Z' )
395395
@@ -404,7 +404,7 @@ def test_generate_signed_url_non_ascii(self):
404404 'api_access_endpoint' : 'https://storage.googleapis.com' ,
405405 'expiration' : EXPIRATION ,
406406 'method' : 'GET' ,
407- 'resource' : '/name/Caf%C3%A9 .txt' ,
407+ 'resource' : '/name/%D0%90%D0%BA%D0%BA%D0%BE%D1%80%D0%B4%D1%8B .txt' ,
408408 'content_type' : None ,
409409 'response_type' : None ,
410410 'response_disposition' : None ,
You can’t perform that action at this time.
0 commit comments