def test_logFailed(self):
    '\n        When a request fails, the string form of the failure is logged.\n        '
    logObserver = proto_helpers.EventLoggingObserver.createWithCleanup(self, globalLogPublisher)
    f = failure.Failure(ArbitraryError())
    request = DummyRequest([b''])
    issue = distrib.Issue(request)
    issue.failed(f)
    self.assertEquals(1, len(logObserver))
    self.assertIn('Failure instance', logObserver[0]['log_format'])
When a request fails, the string form of the failure is logged.
def test_logFailed(self):
    '\n        \n        '
    logObserver = proto_helpers.EventLoggingObserver.createWithCleanup(self, globalLogPublisher)
    f = failure.Failure(ArbitraryError())
    request = DummyRequest([b])
    issue = distrib.Issue(request)
    issue.failed(f)
    self.assertEquals(1, len(logObserver))
    self.assertIn('Failure instance', logObserver[0]['log_format'])