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

Unified Diff: third_party/gsutil/third_party/boto/tests/mturk/mocks.py

Issue 1380943003: Roll version of gsutil to 4.15. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 5 years 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
Index: third_party/gsutil/third_party/boto/tests/mturk/mocks.py
diff --git a/third_party/gsutil/third_party/boto/tests/mturk/mocks.py b/third_party/gsutil/third_party/boto/tests/mturk/mocks.py
index d3f0f2e21baa6769fe36568f487209fb977e9bc4..0b2c52c43ce0d0eff81bf0979977d024b439bfdb 100644
--- a/third_party/gsutil/third_party/boto/tests/mturk/mocks.py
+++ b/third_party/gsutil/third_party/boto/tests/mturk/mocks.py
@@ -1,11 +1,11 @@
-from boto.mturk.connection import MTurkConnection as RealMTurkConnection
-
-class MTurkConnection(RealMTurkConnection):
- """
- Mock MTurkConnection that doesn't connect, but instead just prepares
- the request and captures information about its usage.
- """
-
- def _process_request(self, *args, **kwargs):
- saved_args = self.__dict__.setdefault('_mock_saved_args', dict())
- saved_args['_process_request'] = (args, kwargs)
+from boto.mturk.connection import MTurkConnection as RealMTurkConnection
+
+class MTurkConnection(RealMTurkConnection):
+ """
+ Mock MTurkConnection that doesn't connect, but instead just prepares
+ the request and captures information about its usage.
+ """
+
+ def _process_request(self, *args, **kwargs):
+ saved_args = self.__dict__.setdefault('_mock_saved_args', dict())
+ saved_args['_process_request'] = (args, kwargs)

Powered by Google App Engine
This is Rietveld 408576698