Home
last modified time | relevance | path

Searched refs:mock_method (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/python/
Dmox.py500 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)
[all …]
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst386 ... def test_something(self, mock_method):
388 ... mock_method.assert_called_with()
428 >>> with patch.object(ProductionClass, 'method') as mock_method:
429 ... mock_method.return_value = None
433 >>> mock_method.assert_called_with(1, 2, 3)
Dunittest.mock.rst112 >>> with patch.object(ProductionClass, 'method', return_value=None) as mock_method:
116 >>> mock_method.assert_called_once_with(1, 2, 3)
1276 ... def test(mock_method):
1278 ... mock_method.assert_called_with(3)