[issue31541] Mock called_with does not ensure self/cls argument is used

Pablo Galindo Salgado report at bugs.python.org
Mon Nov 12 22:20:35 EST 2018


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

I agree with Karthikeyan: This is is the expected behaviour. The moment you use a mock, any implementation details are lost unless you use wraps or similar to also transfer the call to the/a real object.

----------
nosy: +pablogsal

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31541>
_______________________________________


More information about the Python-bugs-list mailing list