[Twisted-Python] Running Twisted tests with testtools

Jonathan Lange jml at mumak.net
Wed Feb 8 17:15:18 EST 2012


On Wed, Feb 8, 2012 at 5:22 PM, Free Ekanayaka <free at 64studio.com> wrote:
> Hi Glyph,
>
> |--==> On Wed, 8 Feb 2012 02:05:22 -0500, Glyph <glyph at twistedmatrix.com> said:
>
...
>  G> It's already compatible, as Jonathan said.  You can just use the
>  G> trial runner with testtools tests.
>
> Even those returning deferreds and using AsynchronousDeferredRunTest? I
> presume so, just asking to be sure.
>

Yes.

(Also, you don't get sure from asking, you get sure from trying).

> Also, testtools has an AsynchronousDeferredRunTestForBrokenTwisted class
> too which I believe mimics more closely what trial currently does, so
> I'm not sure what the difference between AsynchronousDeferredRunTest and
> AsynchronousDeferredRunTestForBrokenTwisted would be when using trial to
> run such tests.
>



More information about the Twisted-Python mailing list