[Twisted-Python] Running Twisted tests with testtools

Jonathan Lange jml at mumak.net
Wed Feb 8 15:16:50 MST 2012


On Wed, Feb 8, 2012 at 5:30 PM, Glyph <glyph at twistedmatrix.com> wrote:
...
> (Plus, returning Deferreds should ideally be an edge case, even in the
> context of testing Twisted stuff - as much as possible, tests should run
> synchronously and simulate the events that cause asynchrony in the real
> world, so that they can test different orderings and edge cases and not just
> depend on random load variance on the build machines to get coverage of
> those cases.)
>

Agreed. That's one of the reasons I like explicitly declaring that a
test returns a Deferred using @run_test_with(ADRT).

jml




More information about the Twisted-Python mailing list