Message285787
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'. |
|
Date |
User |
Action |
Args |
2017-01-19 13:04:56 | 153957 | set | recipients:
+ 153957, vstinner, michael.foord, docs@python, berker.peksag, lisroach |
2017-01-19 13:04:56 | 153957 | set | messageid: <1484831096.7.0.627293028368.issue28911@psf.upfronthosting.co.za> |
2017-01-19 13:04:56 | 153957 | link | issue28911 messages |
2017-01-19 13:04:56 | 153957 | create | |
|