[Twisted-Python] Trial Test Runner
Ralph Meijer
twisted at ralphm.ik.nu
Fri Nov 17 07:52:36 MST 2006
On Fri, 2006-11-17 at 15:26 +0100, Markus Schiltknecht wrote:
> Hi,
>
> Jean-Paul Calderone wrote:
> > It is not intended that users will subclass TrialSuite.
>
> Okay.
>
> > You can put your expensive set up code into a free function which caches
> > its result to avoid performing redundant work, then call it from whichever
> > setUp methods need it.
>
> You can not cache the startup of a process or of a network connection.
> Probably unit tests are not designed for such things, but I would like
> to use twisted as it's event based. And I want to test for events. It
> looks like a good fit.
Maybe you test too much. In general you don't need actual network
connections to test protocols. For example, there are helpers in
twisted.test.proto_helpers for mimicking a transport.
--
Groetjes,
ralphm
More information about the Twisted-Python
mailing list