'Check that the log customization of the client transport happens
once the client is connected.'

def test_logstrClientSetup(self):

    server = MyServerFactory()
    client = MyClientFactory()
    client.protocolConnectionMade = defer.Deferred()
    port = reactor.listenTCP(0, server, interface='127.0.0.1')
    self.addCleanup(port.stopListening)
    connector = reactor.connectTCP(port.getHost().host, port.getHost().port, client)
    self.addCleanup(connector.disconnect)
    self.assertEqual(connector.transport.logstr, 'Uninitialized')
    def cb(ign):
        self.assertEqual(connector.transport.logstr, 'AccumulatingProtocol,client')
    client.protocolConnectionMade.addCallback(cb)
    return client.protocolConnectionMade
