unittest
David Goodger
goodger at python.org
Mon Jan 26 11:18:18 EST 2004
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.
The convention is necessary because you might want methods that are
*not* tests.
-- David Goodger
More information about the Python-list
mailing list