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 eric.araujo
Recipients berker.peksag, docs@python, eric.araujo, kushal.das, methane, michael.foord, rbcollins, serhiy.storchaka, xtreak, ztane
Date 2019-05-21.19:01:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558465319.28.0.732713490723.issue24653@roundup.psfhosted.org>
In-reply-to
Content
> And when people understand this API checks inclusion, calling with
empty list doesn't make sense at all. 

I can see a thought process being «all my other tests use thing.assert_has_calls([call0, call1]), here let’s check there are no calls with thing2.assert_has_calls([])».

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)
History
Date User Action Args
2019-05-21 19:01:59eric.araujosetrecipients: + eric.araujo, rbcollins, michael.foord, methane, docs@python, berker.peksag, serhiy.storchaka, kushal.das, ztane, xtreak
2019-05-21 19:01:59eric.araujosetmessageid: <1558465319.28.0.732713490723.issue24653@roundup.psfhosted.org>
2019-05-21 19:01:59eric.araujolinkissue24653 messages
2019-05-21 19:01:59eric.araujocreate