Lines Matching refs:funcopy
217 def _copy_func_details(func, funcopy): argument
218 funcopy.__name__ = func.__name__
219 funcopy.__doc__ = func.__doc__
221 funcopy.__module__ = func.__module__
223 funcopy.func_defaults = func.func_defaults
225 funcopy.__defaults__ = func.__defaults__
226 funcopy.__kwdefaults__ = func.__kwdefaults__
288 funcopy = context[name]
289 _setup_func(funcopy, mock)
290 return funcopy
293 def _setup_func(funcopy, mock): argument
294 funcopy.mock = mock
309 funcopy.method_calls = _CallList()
310 funcopy.mock_calls = _CallList()
312 ret = funcopy.return_value
316 funcopy.called = False
317 funcopy.call_count = 0
318 funcopy.call_args = None
319 funcopy.call_args_list = _CallList()
320 funcopy.method_calls = _CallList()
321 funcopy.mock_calls = _CallList()
323 funcopy.return_value = mock.return_value
324 funcopy.side_effect = mock.side_effect
325 funcopy._mock_children = mock._mock_children
327 funcopy.assert_called_with = assert_called_with
328 funcopy.assert_called_once_with = assert_called_once_with
329 funcopy.assert_has_calls = assert_has_calls
330 funcopy.assert_any_call = assert_any_call
331 funcopy.reset_mock = reset_mock
333 mock._mock_delegate = funcopy