[Twisted-Python] Trial Test Runner

Markus Schiltknecht markus at bluegap.ch
Fri Nov 17 08:22:14 EST 2006


Hi,

Ralph Meijer wrote:
> You can use class inheritance. Define A deriving from object, and then B
> from A and TestCase, for example.

That only works for Fixtures which take a few milliseconds to setUp and 
tearDown, because for every derived TestCase, the Fixture is setUp and 
tornDown. That won't work in my case, because setting up the Fixture is 
quite complex and takes up to 20 seconds. I definitely don't want to do 
that for every contained TestCase.

Why does the TrialSuite not have setUp and tearDown methods?

Regards

Markus




More information about the Twisted-Python mailing list