Lines Matching refs:funcopy
108 def _copy_func_details(func, funcopy): argument
116 setattr(funcopy, attribute, getattr(func, attribute))
174 funcopy = context[name]
175 _setup_func(funcopy, mock, sig)
176 return funcopy
179 def _setup_func(funcopy, mock, sig): argument
180 funcopy.mock = mock
201 funcopy.method_calls = _CallList()
202 funcopy.mock_calls = _CallList()
204 ret = funcopy.return_value
208 funcopy.called = False
209 funcopy.call_count = 0
210 funcopy.call_args = None
211 funcopy.call_args_list = _CallList()
212 funcopy.method_calls = _CallList()
213 funcopy.mock_calls = _CallList()
215 funcopy.return_value = mock.return_value
216 funcopy.side_effect = mock.side_effect
217 funcopy._mock_children = mock._mock_children
219 funcopy.assert_called_with = assert_called_with
220 funcopy.assert_called_once_with = assert_called_once_with
221 funcopy.assert_has_calls = assert_has_calls
222 funcopy.assert_any_call = assert_any_call
223 funcopy.reset_mock = reset_mock
224 funcopy.assert_called = assert_called
225 funcopy.assert_not_called = assert_not_called
226 funcopy.assert_called_once = assert_called_once
227 funcopy.__signature__ = sig
229 mock._mock_delegate = funcopy