[Twisted-Python] Trial Test Runner
twisted at ralphm.ik.nu
Fri Nov 17 07:11:51 EST 2006
On Fri, 2006-11-17 at 12:57 +0100, Markus Schiltknecht wrote:
> Jean-Paul Calderone wrote:
> > Trial has a command line tool for running suites, "trial". If that code is
> > in eUnit/test/test_sample.py, then you can try any of these commands:
> Duh! Thank you! I didn't think about a command line tool and was looking
> in the wrong places.
> Another question: can I somehow nest setUp and tearDown methods? I.e.
> A.setUp: very general setup, i.e. starting a process needed
> A.B.setUp: specific setups for B, which depend on A's setup
> A.tearDown: tear down all the general stuff, i.e. stopping that
You can use class inheritance. Define A deriving from object, and then B
from A and TestCase, for example.
More information about the Twisted-Python