Searched refs:funcopy (Results 1 – 4 of 4) sorted by relevance
/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/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/python/mock/mock/ |
D | mock.py | 214 def _copy_func_details(func, funcopy): argument 215 funcopy.__name__ = func.__name__ 216 funcopy.__doc__ = func.__doc__ 218 funcopy.__text_signature__ = func.__text_signature__ 224 funcopy.__module__ = func.__module__ 228 funcopy.__defaults__ = func.__defaults__ 232 funcopy.__kwdefaults__ = func.__kwdefaults__ 236 funcopy.func_defaults = func.func_defaults 303 funcopy = context[name] 304 _setup_func(funcopy, mock) [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 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 [all …]
|