Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Unified Diff: infra_libs/test/httplib2_utils_test.py

Issue 2127373005: Fix RetriableHttp (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix RetriableHttp Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra_libs/httplib2_utils.py ('k') | infra_libs/ts_mon/common/monitors.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/test/httplib2_utils_test.py
diff --git a/infra_libs/test/httplib2_utils_test.py b/infra_libs/test/httplib2_utils_test.py
index 5529fc0226821433f15218f2176c7a689a6c0c45..9e32bc40402c1e5aefd8d29b9d574af3ab0b3acf 100644
--- a/infra_libs/test/httplib2_utils_test.py
+++ b/infra_libs/test/httplib2_utils_test.py
@@ -138,6 +138,13 @@ class RetriableHttplib2Test(unittest.TestCase):
_MOCK_REQUEST = mock.call('http://foo/', 'GET', None)
+ def test_authorize(self):
+ http = infra_libs.RetriableHttp(httplib2.Http())
+ creds = infra_libs.get_signed_jwt_assertion_credentials(
+ 'valid_creds.json',
+ service_accounts_creds_root=DATA_DIR)
+ creds.authorize(http)
+
def test_delegate_get_attr(self):
"""RetriableHttp should delegate getting attribute except request() to
Http"""
« no previous file with comments | « infra_libs/httplib2_utils.py ('k') | infra_libs/ts_mon/common/monitors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698