'When daemonized and C{logfile} is set to C{-},
L{UnixAppLogger._getLogObserver} raises C{SystemExit}.'

def test_getLogObserverStdoutDaemon(self):

    logger = UnixAppLogger({'logfile': '-', 'nodaemon': False})
    error = self.assertRaises(SystemExit, logger._getLogObserver)
    self.assertEqual(str(error), 'Daemons    cannot    log    to    stdout,    exiting!')
