'Logged Twisted errors get written to standard out as ``eliot``
messages.'

def test_twisted_errors(self):

    message = u'A    zero    division    ono\nTraceback    (most    recent    call    last):\nFailure:    exceptions.ZeroDivisionError:    onoes\n'
    d = self.run_script(TwistedErrorScript)
    d.addCallback((lambda messages: assertContainsFields(self, messages[1], {u'message_type': u'twisted:log', u'message': message, u'error': True})))
    return d
