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

Antoine Pitrou report at bugs.python.org
Thu Feb 28 14:07:48 CET 2013


Antoine Pitrou added the comment:

I still have to do some tuple unpacking myself while assert_* already did it first. It can be tedious and error-prone (especially if there are several arguments to get).

If the assert methods returning something bothers you, how about introducing a new method match_call_with(...)?

----------

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


More information about the Python-bugs-list mailing list