This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Yannick Brehon
Recipients Yannick Brehon
Date 2016-10-06.20:13:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475784799.56.0.716869368954.issue28380@psf.upfronthosting.co.za>
In-reply-to
Content
If one defines a mock for a function, using autospec=True, then the mock will correctly support assert_called_once_with(), among others, but not assert_called_once, assert_called, and assert_not_called.
The attached file contains a fix for the issue.
History
Date User Action Args
2016-10-06 20:13:19Yannick Brehonsetrecipients: + Yannick Brehon
2016-10-06 20:13:19Yannick Brehonsetmessageid: <1475784799.56.0.716869368954.issue28380@psf.upfronthosting.co.za>
2016-10-06 20:13:19Yannick Brehonlinkissue28380 messages
2016-10-06 20:13:19Yannick Brehoncreate