unittest

Zunbeltz Izaola zunbeltz at wm.lc.ehu.es.XXX
Tue Jan 27 02:24:35 EST 2004


David Goodger <goodger at python.org> writes:

> Zunbeltz Izaola wrote:
>  > Tnaks, why is this so?
> 
>  From the fine manual
> (http://www.python.org/doc/current/lib/minimal-example.html):
> 
>      A testcase is created by subclassing unittest.TestCase. The three
>      individual tests are defined with methods whose names start with
>      the letters "test". This naming convention informs the test runner
>      about which methods represent tests.

I have to read the manuals at full :-)

Zunbeltz

> 
> The convention is necessary because you might want methods that are
> *not* tests.
> 
> -- David Goodger



More information about the Python-list mailing list