'If L{HTTPConnectionPool.retryAutomatically} is set to C{False}, don\'t
wrap connections with retrying logic.'

def test_dontRetryIfRetryAutomaticallyFalse(self):

    pool = client.HTTPConnectionPool(Clock())
    pool.retryAutomatically = False
    protocol = StubHTTPProtocol()
    protocol.makeConnection(StringTransport())
    pool._putConnection(123, protocol)
    d = pool.getConnection(123, DummyEndpoint())
    def gotConnection(connection):
        self.assertIdentical(connection, protocol)
    return d.addCallback(gotConnection)
