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 153957
Recipients 153957, berker.peksag, docs@python, lisroach, michael.foord, vstinner
Date 2017-01-19.13:04:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484831096.7.0.627293028368.issue28911@psf.upfronthosting.co.za>
In-reply-to
Content
Unfortunately there cant be commas in the method name, that would clarify the name. It should be read as 'assert called once, with ...' not 'assert called once with ...'.

I have often used the method to test something was called only once, and with the specified arguments.

It seems that it is more difficult (i.e. no single method) to check if only one call was made with the specified arguments (allowing for more calls with other arguments), perhaps that could be added. Something like 'assert_once_called_with' or 'assert_one_call_with'.
History
Date User Action Args
2017-01-19 13:04:56153957setrecipients: + 153957, vstinner, michael.foord, docs@python, berker.peksag, lisroach
2017-01-19 13:04:56153957setmessageid: <1484831096.7.0.627293028368.issue28911@psf.upfronthosting.co.za>
2017-01-19 13:04:56153957linkissue28911 messages
2017-01-19 13:04:56153957create