Message267160
Thanks for proposing this. I really don't want to add new assertions to unittest, and I certainly don't want to add narrow usage ones like this, nor ones that are confusingly named (this has nothing to do with files, but 'close' is a verb for files, just like equal is a verb for objects.
Instead, I suggest a regular function that will raise AssertionError on failure. The only thing you need _formatMessage for is handling long messages, and I don't think thats useful or relevant for a binary numeric test like this. |
|
Date |
User |
Action |
Args |
2016-06-03 20:41:26 | rbcollins | set | recipients:
+ rbcollins, mark.dickinson, ezio.melotti, r.david.murray, michael.foord, ChrisBarker |
2016-06-03 20:41:26 | rbcollins | set | messageid: <1464986486.7.0.889335930268.issue27198@psf.upfronthosting.co.za> |
2016-06-03 20:41:26 | rbcollins | link | issue27198 messages |
2016-06-03 20:41:26 | rbcollins | create | |
|