def test_configuredLogObserverBeatsLogfile(self):
        """
        C{--logger} takes precedence over a C{--logfile} command line
        argument.
        """
        application = Componentized()
        path = self.mktemp()
        self._checkObserver(self._setupConfiguredLogger(application,
                                                        {"logfile": "path"}))
        self.assertFalse(os.path.exists(path))

        C{--logger} takes precedence over a C{--logfile} command line
        argument.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_twistd.py