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 xtreak
Recipients berker.peksag, docs@python, eric.araujo, kushal.das, methane, michael.foord, rbcollins, serhiy.storchaka, xtreak, ztane
Date 2019-05-21.19:05:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558465534.16.0.853196290706.issue24653@roundup.psfhosted.org>
In-reply-to
Content
> Are the correct methods advertised in the right place?  (I don’t use mock so I forgot if there is a method to assert not called or if it’s assertEqual(mock calls count, 0) or some False property)

There is assert_not_called https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_not_called

>>> from unittest.mock import Mock
>>> m = Mock()
>>> m.assert_not_called()
History
Date User Action Args
2019-05-21 19:05:34xtreaksetrecipients: + xtreak, rbcollins, eric.araujo, michael.foord, methane, docs@python, berker.peksag, serhiy.storchaka, kushal.das, ztane
2019-05-21 19:05:34xtreaksetmessageid: <1558465534.16.0.853196290706.issue24653@roundup.psfhosted.org>
2019-05-21 19:05:34xtreaklinkissue24653 messages
2019-05-21 19:05:34xtreakcreate