Michael Foord added the comment:
As David points out - in your example the "actual call" made is
m.some_method('foo', 'bar'). Your assertion (the expectation) is
m.some_method.assert_called_once_with('foo', 'baz').
So the traceback is correct. I don't think the ordering of expected/actual in
the output matters.
----------
resolution: -> not a bug
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue21692>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com