﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4476	Modify test client to follow redirect chains	Chris Moffitt <chris.moffitt@…>	Marc Fargas	"When using assertRedirects, I find myself doing an assert redirects, then wanting to validate the text where I'm redirecting.  The process seems a little clunky and an assertRedirectContains would be useful.

Current process: 

{{{
self.assertRedirects(response, '/confirm/', status_code=302, target_status_code=200)
response = self.client.get('/confirm/')
self.assertContains(response, ""Total = $54.50"", count=1, status_code=200)
}}}

It would be nice to have something like:

{{{
self.assertRedirectContains(response, ""Total = $54.50"", count=1, status_code=302, target_status_code=200)
}}}

I'm assuming there's no other shortcut I'm missing.

*** UPDATE (from russellm) ***

Rather that assertRedirectContains, I'm favouring a modification to the test client that will follow redirects. Details in the comment below"		closed	Testing framework	dev		fixed		kbussell@…	Accepted	1	0	0	0	0	0
