'Follow redirect by setting follow argument.'

def test_follow_redirect(self):

    response = self.client.get(u'/redirect-view/')
    assert (response.status_code == 302)
    response = self.client.get(u'/redirect-view/', follow=True)
    assert (response.redirect_chain is not None)
    assert (response.status_code == 200)
    response = self.client.post(u'/redirect-view/')
    assert (response.status_code == 302)
    response = self.client.post(u'/redirect-view/', follow=True)
    assert (response.redirect_chain is not None)
    assert (response.status_code == 200)
    response = self.client.put(u'/redirect-view/')
    assert (response.status_code == 302)
    response = self.client.put(u'/redirect-view/', follow=True)
    assert (response.redirect_chain is not None)
    assert (response.status_code == 200)
    response = self.client.patch(u'/redirect-view/')
    assert (response.status_code == 302)
    response = self.client.patch(u'/redirect-view/', follow=True)
    assert (response.redirect_chain is not None)
    assert (response.status_code == 200)
    response = self.client.delete(u'/redirect-view/')
    assert (response.status_code == 302)
    response = self.client.delete(u'/redirect-view/', follow=True)
    assert (response.redirect_chain is not None)
    assert (response.status_code == 200)
    response = self.client.options(u'/redirect-view/')
    assert (response.status_code == 302)
    response = self.client.options(u'/redirect-view/', follow=True)
    assert (response.redirect_chain is not None)
    assert (response.status_code == 200)
