
Feb. 27, 2012
1:26 p.m.
On Fri, Feb 17, 2012 at 9:50 PM, Steven D'Aprano <steve@pearwood.info> wrote:
Hmmm, interesting. I generally like to keep it all in one file and define a dummy "test" function that just contains doctest code so that it can be all kept in one file and in-sync.
If doctest had context-scoping, I think it would be superior to unittest. SetUp functionality would be contained in the class definition's __doc__, or out in the module's own __doc__. If any teardown functionality was necessary in the class's code a dummy teardown method could be defined at the end of the class definition. (Not as ideal as a more integrated test-driven development approach, but likely acceptable...) mark
4769
Age (days ago)
4769
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Janssen