'``_AgentLocator.logger`` is a property that returns the ``logger``
attribute of the ``Agent`` supplied to its initialiser.'

@validate_logging(None)
def test_logger(self, logger):

    fake_agent = FakeAgent()
    self.patch(fake_agent, 'logger', logger)
    reactor = Clock()
    protocol = AgentAMP(reactor, fake_agent)
    locator = _AgentLocator(agent=fake_agent, timeout=timeout_for_protocol(reactor, protocol))
    self.assertIs(logger, locator.logger)
