def test_errorMessageTruncated(self):

        class FakeService(service.Service):

            def startService(self):
                raise RuntimeError("x" * 200)

        errorService = FakeService()
        errorService.setServiceParent(self.runner.application)

        with AlternateReactor(FakeDaemonizingReactor()):
            self.assertRaises(RuntimeError, self.runner.postApplication)
        self.assertEqual(
            self.mockos.actions,
            [('chdir', '.'), ('umask', 0o077), ('fork', True), 'setsid',
             ('fork', True), ('write', -2, '1 ' + 'x' * 98),
             ('unlink', 'twistd.pid')])
        self.assertEqual(self.mockos.closed, [-3, -2])
Raise ConfigurationError with the given key name.
dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/DaemonizeTests.test_errorMessageTruncated--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/raise_config_error