'If the L{Deferred} fails, L{DeferredResource} reports the failure via
C{processingFailed}, and does not cause an unhandled error to be
logged.'

def test_renderNoFailure(self):

    request = DummyRequest([])
    d = request.notifyFinish()
    failure = Failure(RuntimeError())
    deferredResource = DeferredResource(defer.fail(failure))
    deferredResource.render(request)
    self.assertEqual(self.failureResultOf(d), failure)
    del deferredResource
    gc.collect()
    errors = self.flushLoggedErrors(RuntimeError)
    self.assertEqual(errors, [])
