Unit test examples
Troy Melhase
troy at gci.net
Sun Dec 22 19:41:18 EST 2002
Read the standard library documentation for the unittest module:
http://www.python.org/doc/current/lib/module-unittest.html
Then take a look at pyunit and its documentation for more examples:
http://pyunit.sourceforge.net/
When you're done with that, read the unittest.py source.
Good luck.
troy
Greg Brunet wrote:
> I'm trying to get into the Pythonic & Extreme Programming way of doing
> things by adopting the practice of writing some good unit test routines
> along with (or before) writing my modules, and could use some good
> examples to learn from.
>
> I've been reading Bruce Eckel's excellent "Thinking in Python"
> (http://www.mindview.net/Books/TIPython/), and am in chapter 2 (Unit
> Testing). He notes, however, that this chapter hasn't had any
> significant translation yet, and a number of the examples still have
> Java or C++ keywords present (static, protected, void, etc.), so it's
> confusing me more than helping me. Can anyone recommend another source
> of Python code and/or documentation that I could learn from? Thanks,
>
> --
> Greg
>
>
More information about the Python-list
mailing list