Index: third_party/gsutil/boto/tests/mturk/mocks.py |
diff --git a/third_party/gsutil/boto/tests/mturk/mocks.py b/third_party/gsutil/boto/tests/mturk/mocks.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0b2c52c43ce0d0eff81bf0979977d024b439bfdb |
--- /dev/null |
+++ b/third_party/gsutil/boto/tests/mturk/mocks.py |
@@ -0,0 +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) |