unittest setup

Diez B. Roggisch deets at nospam.web.de
Sun Sep 25 11:56:49 EDT 2005


paul kölle wrote:
> hi all,
> 
> I noticed that setUp() and tearDown() is run before and after *earch*
> test* method in my TestCase subclasses. I'd like to run them *once* for
> each TestCase subclass. How do I do that.

Create a global/test instance flag.

Diez



More information about the Python-list mailing list