[Twisted-Python] Deferreds and Trial -- getting my timing right

Brendon Colby brendoncolby at gmail.com
Wed Oct 31 13:01:06 EDT 2007


On 10/31/07, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>
> When your factory begins listening on its first port.
>
>   f = YourFactory()
>   reactor.listenTCP(0, f) # <- here
>   reactor.run()
>
> Jean-Paul


So what do I need to do in my unittests to get this to work? I'm using a
FileWrapper now to mock this up, so I never run listenTCP() of course.

Brendon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20071031/b557e182/attachment.htm 


More information about the Twisted-Python mailing list