Message120034
Am discussing this with the OP on IRC and tabling it for a while so we can better think out the API.
The goal is to let assertEqual(a, b) do straight-comparions of raw bytes, but to give a nice looking diff (possibly translated with line breaks or somesuch) when the test fails. This will be helpful in testing the email module.
The current patch requires that assertBytesEqual be exposed and called directly so that a user can specify a split-at argument. The purpose of that argument is to approximate the line breaking that occurs naturally in text. The OP does not want to decode the bytes prior to the equality test, but does want a readable diff whenever the bytes represent ascii text. |
|
Date |
User |
Action |
Args |
2010-10-31 03:45:09 | rhettinger | set | recipients:
+ rhettinger, r.david.murray, michael.foord |
2010-10-31 03:45:09 | rhettinger | set | messageid: <1288496709.19.0.372730400569.issue10164@psf.upfronthosting.co.za> |
2010-10-31 03:45:07 | rhettinger | link | issue10164 messages |
2010-10-31 03:45:06 | rhettinger | create | |
|