[Tutor] Re: Convert doesn't work... I'm stumped

Kent Johnson kent37 at tds.net
Thu Mar 17 05:17:08 CET 2005

Jacob S. wrote:
> Ahh... I found that out today. A little more rest, I guess.
> As for unit testing, I've seen it used, but I've never implemented it.
> I've tried doc string testing with doctest, but I find I can do better just
> using the interactive interpreter. 

I think one way to use doctest is to copy and paste from the interactive interpreter. So your ad hoc 
tests are preserved as documentation and unit tests.

I have never tried this myself, though; I'm a fan of unittest.


More information about the Tutor mailing list