Skip to content

Commit 1a1dac0

Browse files
committed
Removing superfluous patches in test_generate_signed_url_w_expiration_int.
1 parent b4c605a commit 1a1dac0

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

gcloud/storage/test_connection.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,6 @@ def test_generate_signed_url_w_expiration_int(self):
613613
RESOURCE = '/name/key'
614614
PROJECT = 'project'
615615
SIGNED = base64.b64encode('DEADBEEF')
616-
crypto = _Crypto()
617-
rsa = _RSA()
618-
pkcs_v1_5 = _PKCS1_v1_5()
619-
sha256 = _SHA256()
620616
conn = self._makeOne(PROJECT, _Credentials())
621617
conn.API_ACCESS_ENDPOINT = ENDPOINT
622618

@@ -628,9 +624,7 @@ def _get_signed_query_params(*args):
628624
'Signature': SIGNED,
629625
}
630626

631-
with _Monkey(MUT, crypto=crypto, RSA=rsa, PKCS1_v1_5=pkcs_v1_5,
632-
SHA256=sha256,
633-
_get_signed_query_params=_get_signed_query_params):
627+
with _Monkey(MUT, _get_signed_query_params=_get_signed_query_params):
634628
url = conn.generate_signed_url(RESOURCE, 1000)
635629

636630
scheme, netloc, path, qs, frag = urlparse.urlsplit(url)

0 commit comments

Comments
 (0)