Searched refs:funcopy (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | _mock_backport.py | 117 def _copy_func_details(func, funcopy): argument 118 funcopy.__name__ = func.__name__ 119 funcopy.__doc__ = func.__doc__ 121 funcopy.__text_signature__ = func.__text_signature__ 127 funcopy.__module__ = func.__module__ 131 funcopy.__defaults__ = func.__defaults__ 135 funcopy.__kwdefaults__ = func.__kwdefaults__ 193 funcopy = context[name] 194 _setup_func(funcopy, mock) 195 return funcopy [all …]
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 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 [all …]
|
/external/python/mock/mock/ |
D | mock.py | 200 def _copy_func_details(func, funcopy): argument 208 setattr(funcopy, attribute, getattr(func, attribute)) 213 funcopy.func_defaults = func.func_defaults 281 funcopy = context[name] 282 _setup_func(funcopy, mock, sig) 283 return funcopy 286 def _setup_func(funcopy, mock, sig): argument 287 funcopy.mock = mock 304 funcopy.method_calls = _CallList() 305 funcopy.mock_calls = _CallList() [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 125 def _copy_func_details(func, funcopy): argument 133 setattr(funcopy, attribute, getattr(func, attribute)) 191 funcopy = context[name] 192 _setup_func(funcopy, mock, sig) 193 return funcopy 196 def _setup_func(funcopy, mock, sig): argument 197 funcopy.mock = mock 214 funcopy.method_calls = _CallList() 215 funcopy.mock_calls = _CallList() 217 ret = funcopy.return_value [all …]
|