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.rst377 ... def test_something(self, mock_method):
379 ... mock_method.assert_called_with()
419 >>> with patch.object(ProductionClass, 'method') as mock_method:
420 ... mock_method.return_value = None
424 >>> 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)
1242 ... def test(mock_method):
1244 ... mock_method.assert_called_with(3)