[issue26950] Typo in unittest.mock > Autospeccing documentation
Berker Peksag
report at bugs.python.org
Wed May 4 09:51:54 EDT 2016
Berker Peksag added the comment:
Thanks for the report, but the typos are intentional. Quoting from the documentation:
[...] if you misspell one of these assert methods then your assertion is gone:
>>> mock = Mock(name='Thing', return_value=None)
>>> mock(1, 2, 3)
>>> mock.assret_called_once_with(4, 5, 6)
Your tests can pass silently and incorrectly because of the typo.
----------
nosy: +berker.peksag
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26950>
_______________________________________
More information about the Python-bugs-list
mailing list