'If logged in, go to custom redirected URL.'

@override_settings(LOGIN_REDIRECT_URL='/custom/')
def test_redirect_url(self):

    self.login()
    response = self.client.get(self.do_redirect_url)
    self.assertRedirects(response, '/custom/', fetch_redirect_response=False)
