11 Mar
2008
11 Mar
'08
1:58 p.m.
On Mar 11, 2008, at 9:46 AM, Andreas Jung wrote: ...
You can also document your edgecase in the same way as comments within your unittests.
This is true in theory, but in practice, it almost never happens. There is no guarantee that doctests will contain useful text, but they encourage text which has a greater chance of being useful than no text at all.
Agreed. But unittests are for certain tests more suitable. E.g. if you need a complex and bigger fixture or something like that.
Unit testst don't make it any easier or harder to write test fixtures. They *do* encourage the use of inheritance to write text fixtures, which tends, in my experience to make them harder to understand. Jim -- Jim Fulton Zope Corporation