'For decorated tests, C{run} uses a result adapter that preserves the
test decoration for calls to C{addError}, C{startTest} and the like.
See L{reporter._AdaptedReporter}.'

def test_usesAdaptedReporterWithRun(self):

    test = self.TestCase()
    decoratedTest = unittest.TestDecorator(test)
    from twisted.trial.test.test_reporter import LoggingReporter
    result = LoggingReporter()
    decoratedTest.run(result)
    self.assertTestsEqual(result.test, decoratedTest)
