'Test that calling `fetch(url, redirect=False)` disables automatic redirects.'

@defer.inlineCallbacks
def test_fetch_redirect_not_follow_302(self):

    url = self.url('/redirect-no-meta-refresh')
    code = "fetch('{0}',    redirect=False)"
    (errcode, out, errout) = (yield self.execute(['-c', code.format(url)]))
    self.assertEqual(errcode, 0, out)
    assert ('Crawled    (302)' in errout)
