Art of Unit Testing

Aahz Maruch aahz at panix.com
Tue Aug 21 15:27:10 EDT 2001


In article <mailman.998013446.19337.python-list at python.org>,
Jesse W <jessw at loop.com> wrote:
>
>	I have read about, and downloaded, some of the Python unit 
>testing frameworks available, but I have never yet been able to 
>actually use any one of them to implement actual _tests_. I wish to 
>use unit tests(at least, the kind of unit tests used in Extreme 
>Programming(I think))because one of the claims of aficionados of 
>this approach is that it helps them get over the problem of how to 
>make programs that can't be kept in mind as a whole. This amazing 
>feat is done, say the aficionados, by writing the unit tests out before 
>the code.  I have both great hope and significant doubts about this 
>method.

One other suggestion nobody else has mentioned: use doctest.py instead.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"I now regard a fact as a hypothesis that people don't bother to argue
about anymore."  --John Burn, quoted in Lawrence Wright's _Twins_



More information about the Python-list mailing list