Debugging Python

Michele Simionato michele.simionato at poste.it
Tue Jan 13 09:41:54 EST 2004


"Frithiof Andreas Jensen" <frithiof.jensen at removethis.ted.ericsson.dk> wrote in message news:<bu0eq4$pqt$1 at newstree.wise.edt.ericsson.se>...
> "Peter Hansen" <peter at engcorp.com> wrote in message
> news:4002AE9B.C51448FB at engcorp.com...
> 
> > ...., as it takes me only about twenty seconds to start a
> > new test file and that's *without* using a template.
> 
> ....in twenty seconds you can just about write "import unittest" ;-)
> 
> I find that a simple module will need about three to five tests for each
> method in each class and probably some test data as well often yielding in
> total *more* lines of test code than the module I want to test.
> 
> It is simple, stupid & boring code but still lines that have to be typed and
> debugged.
> 
> *That* is tedious work. Always will be.

That's why I use "doctest" much more than "unittest". 

     Michele



More information about the Python-list mailing list