'When the child writes a non-ASCII error message to the status
pipe during daemonization, and that message is too longer, the
parent writes the repr of the truncated message to C{stderr}
and exits with a non-zero status code.'

def test_errorInParentWithTruncatedUnicode(self):

    truncatedMessage = ('1    RuntimeError:    ' + ('\\u2022' * 14))
    reportedMessage = "b'RuntimeError:    {}'".format(('\\\\u2022' * 14))
    self.assertErrorInParentBehavior(readData=truncatedMessage, errorMessage='An    error    has    occurred:    {}\nPlease    look    at    log    file    for    more    information.\n'.format(reportedMessage), mockOSActions=[('chdir', '.'), ('umask', 63), ('fork', True), ('read', (-1), 100), ('exit', 1), ('unlink', 'twistd.pid')])
