'Enabling unsafe redirection behaviour overwrites the method of
redirected C{POST} requests with C{GET}.'

def test_afterFoundGet(self):

    url = self.getURL('extendedRedirect?code=302')
    f = client.HTTPClientFactory(url, followRedirect=True, method='POST')
    self.assertFalse(f.afterFoundGet, 'By    default,    afterFoundGet    must    be    disabled')
    def gotPage(page):
        self.assertEqual(self.extendedRedirect.lastMethod, 'GET', 'With    afterFoundGet,    the    HTTP    method    must    change    to    GET')
    d = client.getPage(url, followRedirect=True, afterFoundGet=True, method='POST')
    d.addCallback(gotPage)
    return d
