Ticket #6105 enhancement closed fixed
Implement assertNotFired, assertFired and assertErrbackFired on SynchronousTestCase
|Reported by:||itamar||Owned by:||exarkun|
(diff, github, buildbot, log)
In many tests it is useful to deal with Deferreds in a synchronous manner. The current idiom is:
result =  d.addCallback(result.append) self.assertTrue(result)
This is icky (a technical term!). We should instead have assertions on twisted.trial.unittest.SynchronousTestCase that can run against Deferreds without relying on the reactor (i.e. no need to return a Deferred from the test).