(obj)
| 82 | |
| 83 | |
| 84 | def _extract_mock(obj): |
| 85 | # Autospecced functions will return a FunctionType with "mock" attribute |
| 86 | # which is the actual mock object that needs to be used. |
| 87 | if isinstance(obj, FunctionTypes) and hasattr(obj, 'mock'): |
| 88 | return obj.mock |
| 89 | else: |
| 90 | return obj |
| 91 | |
| 92 | |
| 93 | def _get_signature_object(func, as_instance, eat_self): |
no test coverage detected