def test_addExpectedFailure(self):
        """
        C{addExpectedFailure} wraps its test with the provided adapter.
        """
        self.wrappedResult.addExpectedFailure(
            self, self.getFailure(RuntimeError()), Todo("no reason"))
        self.assertWrapped(self.wrappedResult, self)

        C{addExpectedFailure} wraps its test with the provided adapter.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_reporter.py