Author vstinner
Recipients Amit.Saha, The Compiler, michael.foord, rbcollins, vstinner
Date 2016-02-17.21:05:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455743138.17.0.651013404423.issue26323@psf.upfronthosting.co.za>
In-reply-to
Content
If we go into this direction, I suggest to add *two* methods:

* assert_called(): called at least once
* assert_called_once(): called exactly once

I would be more consitent with the existing API:

https://docs.python.org/dev/library/unittest.mock.html#unittest.mock.Mock.assert_not_called

https://docs.python.org/dev/library/unittest.mock.html#unittest.mock.Mock.assert_called_with

https://docs.python.org/dev/library/unittest.mock.html#unittest.mock.Mock.assert_called_once_with
History
Date User Action Args
2016-02-17 21:05:38vstinnersetrecipients: + vstinner, rbcollins, michael.foord, Amit.Saha, The Compiler
2016-02-17 21:05:38vstinnersetmessageid: <1455743138.17.0.651013404423.issue26323@psf.upfronthosting.co.za>
2016-02-17 21:05:38vstinnerlinkissue26323 messages
2016-02-17 21:05:37vstinnercreate