def test_configuredLogObserverBeatsLegacyComponent(self):
        """
        C{--logger} takes precedence over a L{LegacyILogObserver} component
        set on Application.
        """
        nonlogs = []
        application = Componentized()
        application.setComponent(LegacyILogObserver, nonlogs.append)
        self._checkObserver(self._setupConfiguredLogger(application))
        self.assertEqual(nonlogs, [])

        C{--logger} takes precedence over a L{LegacyILogObserver} component
        set on Application.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_twistd.py