Lines Matching refs:mock_method
500 mock_method = self._CreateMockMethod('__call__')
501 return mock_method(*params, **named_params)
1194 def AddMethod(self, mock_method): argument
1197 def MethodCalled(self, mock_method): argument
1214 def AddMethod(self, mock_method): argument
1221 self._methods.append(mock_method)
1223 def MethodCalled(self, mock_method): argument
1242 if method == mock_method:
1247 self._methods.remove(mock_method)
1251 mock_method._call_queue.appendleft(self)
1255 raise UnexpectedMethodCallError(mock_method, self)
1276 def AddMethod(self, mock_method): argument
1283 self._methods.add(mock_method)
1285 def MethodCalled(self, mock_method): argument
1305 if method == mock_method:
1306 self._methods_called.add(mock_method)
1309 mock_method._call_queue.appendleft(self)
1313 next_method = mock_method._PopNextMethod();
1316 raise UnexpectedMethodCallError(mock_method, self)