[issue21692] Wrong order of expected/actual for assert_called_once_with

Fei Long Wang report at bugs.python.org
Mon Jun 9 00:25:21 CEST 2014


Fei Long Wang added the comment:

IMHO, the trace should be:

AssertionError: Expected call: some_method('foo', 'bar')   
Actual call: some_method('foo', 'baz')                    

instead of below:

AssertionError: Expected call: some_method('foo', 'baz')   
Actual call: some_method('foo', 'bar')

----------

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


More information about the Python-bugs-list mailing list