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 iritkatriel
Recipients berker.peksag, docs@python, eric.araujo, iritkatriel, kushal.das, methane, michael.foord, rbcollins, serhiy.storchaka, xtreak, ztane
Date 2020-10-09.16:50:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602262209.86.0.939267842975.issue24653@roundup.psfhosted.org>
In-reply-to
Content
I agree that the confusion was probably due to assumptions rather than a misreading of the doc, and I would not object to closing this issue.

However, Robert did object so I would like to suggest an adjustment that may help:

Currently the documentation of assert_not_called is just after that of assert_has_calls.   If we reverse their order, then there can be less room for confusion about how to check that nothing was called - you would read that first. 

https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_has_calls
History
Date User Action Args
2020-10-09 16:50:09iritkatrielsetrecipients: + iritkatriel, rbcollins, eric.araujo, michael.foord, methane, docs@python, berker.peksag, serhiy.storchaka, kushal.das, ztane, xtreak
2020-10-09 16:50:09iritkatrielsetmessageid: <1602262209.86.0.939267842975.issue24653@roundup.psfhosted.org>
2020-10-09 16:50:09iritkatriellinkissue24653 messages
2020-10-09 16:50:09iritkatrielcreate