Skip to content

Commit

Permalink
Removing superfluous patches in test_generate_signed_url_w_expiration…
Browse files Browse the repository at this point in the history
…_int.
  • Loading branch information
dhermes committed Dec 16, 2014
1 parent b4c605a commit 1a1dac0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions gcloud/storage/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,6 @@ def test_generate_signed_url_w_expiration_int(self):
RESOURCE = '/name/key'
PROJECT = 'project'
SIGNED = base64.b64encode('DEADBEEF')
crypto = _Crypto()
rsa = _RSA()
pkcs_v1_5 = _PKCS1_v1_5()
sha256 = _SHA256()
conn = self._makeOne(PROJECT, _Credentials())
conn.API_ACCESS_ENDPOINT = ENDPOINT

Expand All @@ -628,9 +624,7 @@ def _get_signed_query_params(*args):
'Signature': SIGNED,
}

with _Monkey(MUT, crypto=crypto, RSA=rsa, PKCS1_v1_5=pkcs_v1_5,
SHA256=sha256,
_get_signed_query_params=_get_signed_query_params):
with _Monkey(MUT, _get_signed_query_params=_get_signed_query_params):
url = conn.generate_signed_url(RESOURCE, 1000)

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

0 comments on commit 1a1dac0

Please sign in to comment.