'C{--logger} takes precedence over a L{LegacyILogObserver} component
set on Application.'

def test_configuredLogObserverBeatsLegacyComponent(self):

    nonlogs = []
    application = Componentized()
    application.setComponent(LegacyILogObserver, nonlogs.append)
    self._checkObserver(self._setupConfiguredLogger(application))
    self.assertEqual(nonlogs, [])
