(self, /, *args, **kw)
| 1989 | def _get_method(name, func): |
| 1990 | "Turns a callable object (like a mock) into a real function" |
| 1991 | def method(self, /, *args, **kw): |
| 1992 | return func(self, *args, **kw) |
| 1993 | method.__name__ = name |
| 1994 | return method |
| 1995 |
no outgoing calls