Fei Long Wang added the comment:
Okay, I can see your point now. Thanks for the clarification.
--
___
Python tracker
<http://bugs.python.org/issue21692>
___
___
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
New submission from Fei Long Wang:
>>> m=mock.Mock()
>>> m.some_method('foo', 'bar')
>>> m.some_method.assert_called_once_with('foo', 'bar')
>>> m.some_method.assert_called_once_with('foo', 'baz')