[Twisted-Python] Remove setupClass branch of trial - what is the motivation?
Jonathan Lange
jml at mumak.net
Fri Nov 4 18:34:48 MST 2005
On 05/11/05, Itamar Shtull-Trauring <itamar at itamarst.org> wrote:
> On Thu, 2005-11-03 at 16:46 +1100, Jonathan Lange wrote:
>
> > One big implication is that a TestCase isn't (necessarily) a
> > self-contained TestCase. It has to be wrapped in a ClassSuite to make
> > sure that it gets properly set up and torn down. Running a single
> > test shouldn't require a suite.
>
> I don't see why you need a ClassSuite; couldn't a TestCase have optional
> pre- and post- hooks called along with the test?
>
A TestCase instance already has optional pre and post hooks. They are
called setUp and tearDown. A ClassSuite is the suite of all the test
cases defined inside a TestCase subclass.
More information about the Twisted-Python
mailing list