def test_requestFail(self):
    "\n        When L{twisted.web.distrib.Request}'s fail is called, the failure\n        is logged.\n        "
    logObserver = proto_helpers.EventLoggingObserver.createWithCleanup(self, globalLogPublisher)
    err = ArbitraryError()
    f = failure.Failure(err)
    req = distrib.Request(DummyChannel())
    req.fail(f)
    self.flushLoggedErrors(ArbitraryError)
    self.assertEquals(1, len(logObserver))
    self.assertIs(logObserver[0]['log_failure'], f)
When L{twisted.web.distrib.Request}'s fail is called, the failure
is logged.
def test_requestFail(self):
    "\n        When L{twisted.web.distrib.Request}'s fail is called, the failure\n        is logged.\n        "
    logObserver = proto_helpers.EventLoggingObserver.createWithCleanup(self, globalLogPublisher)
    err = ArbitraryError()
    f = failure.Failure(err)
    req = distrib.Request(DummyChannel())
    req.fail(f)
    self.flushLoggedErrors(ArbitraryError)
    self.assertEquals(1, len(logObserver))
    self.assertIs(logObserver[0]['log_failure'], f)