[issue17063] assert_called_with could be more powerful if it allowed placeholders

Michael Foord report at bugs.python.org
Mon Jan 28 14:21:14 CET 2013


Michael Foord added the comment:

Oh, you want the assert_called_with call to *return* the objects compared with the placeholder? 

Well, mock.ANY already exists and you can pull the arguments out for individual assertions using some_mock.call_args.

args, kwargs = some_mock.call_args

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17063>
_______________________________________


More information about the Python-bugs-list mailing list