'When C{afterFoundGet} is C{True}, L{client.getPage} only issues one
request to the server when following the redirect.  This is a regression
test, see #4760.'

def test_afterFoundGetMakesOneRequest(self):

    def checkRedirectCount(*a):
        self.assertEqual(self.afterFoundGetCounter.count, 1)
    url = self.getURL('afterFoundGetRedirect')
    d = client.getPage(url, followRedirect=True, afterFoundGet=True, method='POST')
    d.addCallback(checkRedirectCount)
    return d
