[Python-ideas] Test Class setup and teardown in unittest
Guido van Rossum
guido at python.org
Thu Jan 21 18:09:54 CET 2010
Ignoring many of the finer points brought up here, and putting
practicality before purity, I think having setUpClass and
tearDownClass methods is a great idea.
While we're at it I would also recommend adding module-level setUp and
tearDown function -- Google's extension of pyunit implements these and
they are often handy for a variety of use cases.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list