'For decorated tests, C{__call__} 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_usesAdaptedReporterWithCall(self):

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