def test_basicErrors(self):
        """
        The reporter's L{printErrors} method should include the value of the
        Todo.
        """
        self.result.addExpectedFailure(self.test, Failure(Exception()),
                                       makeTodo('some reason'))
        self.result.done()
        output = self.stream.getvalue().splitlines()[3].strip()
        self.assertEqual(output, "Reason: 'some reason'")

        The reporter's L{printErrors} method should include the value of the
        Todo.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_reporter.py