Test cases always run with separate instance?
Martin Schulze
joey at infodrom.org
Thu Mar 18 20:40:58 CET 2004
Hi!
I wonder if a class containing several test functions needs to be
created and destroyed for each test, so that no object data can
survive from one test to another.
I've read the documentation of unittest[1] but it didn't help me
understand how I can prevent this. It talks about aggregating tests
into test suites, though, but still mentions that each test will get
its own object.
Maybe it's not possible to have one class and a bunch of test methods
which are *not* run separately, each in an instance of its own.
Regards,
Joey
1. http://pyunit.sourceforge.net/pyunit.html
--
The MS-DOS filesystem is nice for removable media. -- H. Peter Anvin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)