def test_errorMessageTruncated(self):
        """
        If an error occurs during daemonization and its message is too
        long, it's truncated by the child.
        """
        self.assertErrorWritten(
            raised="x" * 200,
            reported=b'1 RuntimeError: ' + b'x' * 84)

        If an error occurs during daemonization and its message is too
        long, it's truncated by the child.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_twistd.py