'If C{persistent} is set to C{True} on the L{HTTPConnectionPool} (the
default), C{Request}s are created with their C{persistent} flag set to
C{True}.'

def test_persistent(self):

    pool = HTTPConnectionPool(self.reactor)
    agent = client.Agent(self.reactor, pool=pool)
    agent._getEndpoint = (lambda *args: self)
    agent.request('GET', 'http://127.0.0.1')
    self.assertEqual(self.protocol.requests[0][0].persistent, True)
