'When daemonized and C{logfile} is empty, the observer returned by
L{UnixAppLogger._getLogObserver} points at C{twistd.log} in the current
directory.'

def test_getLogObserverDefaultFile(self):

    logFiles = _patchTextFileLogObserver(self.patch)
    logger = UnixAppLogger({'logfile': '', 'nodaemon': False})
    logger._getLogObserver()
    self.assertEqual(len(logFiles), 1)
    self.assertEqual(logFiles[0].path, os.path.abspath('twistd.log'))
