
Oct. 20, 2016
12:07 a.m.
On Oct 19, 2016, at 4:25 PM, Jean-Paul Calderone <exarkun@twistedmatrix.com> wrote:
It's also possible to write a little bit of testing library code and get both versions of the test nearly for free. Unfortunately, I very rarely see test suites written that way. I think many people don't realize there are two cases to handle or believe testing both cases is too expensive for them (perhaps because they don't realize you can reuse the code for doing so to save on the cost).
I don't think even I've ever written a test suite that way. Could we provide any utilities in Twisted to make this easier, or even more importantly, more obvious? -glyph