| OLD | NEW |
| 1 from boto.mturk.connection import MTurkConnection as RealMTurkConnection | 1 from boto.mturk.connection import MTurkConnection as RealMTurkConnection |
| 2 | 2 |
| 3 class MTurkConnection(RealMTurkConnection): | 3 class MTurkConnection(RealMTurkConnection): |
| 4 """ | 4 """ |
| 5 Mock MTurkConnection that doesn't connect, but instead just prepares | 5 Mock MTurkConnection that doesn't connect, but instead just prepares |
| 6 the request and captures information about its usage. | 6 the request and captures information about its usage. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 def _process_request(self, *args, **kwargs): | 9 def _process_request(self, *args, **kwargs): |
| 10 saved_args = self.__dict__.setdefault('_mock_saved_args', dict()
) | 10 saved_args = self.__dict__.setdefault('_mock_saved_args', dict()
) |
| 11 saved_args['_process_request'] = (args, kwargs) | 11 saved_args['_process_request'] = (args, kwargs) |
| OLD | NEW |