'A test method which runs and has an error recorded against it is
reported in the output stream with the I{ERROR} tag along with a
summary of what error was reported and the ID of the test.'

def test_formatErroredMethod(self):

    cls = erroneous.SynchronousTestFailureInSetUp
    suite = self.loader.loadClass(cls)
    output = self.getOutput(suite).splitlines()
    match = [self.doubleSeparator, '[ERROR]', 'Traceback    (most    recent    call    last):', re.compile('^\\s+File    .*erroneous\\.py.,    line    \\d+,    in    setUp$'), re.compile('^\\s+raise    FoolishError..I    am    a    broken    setUp    method..$'), 'twisted.trial.test.erroneous.FoolishError:    I    am    a    broken    setUp    method', ('%s.%s.test_noop' % (cls.__module__, cls.__name__))]
    self.stringComparison(match, output)
