title: How do I get all django response form data in a test
body: <p>I want to write a generic django test that tests views by simply requesting an arbitrary edit URL, taking all the data in the forms in the response context and then POST-ing that to the same URL without changes.</p>
  
  <p>Does django provide a simple way to get all this form data from a response object, i.e. in a way for any response object? One problem is not knowing where the forms are in the response.context.</p>
  
  <p>EDIT: to clarify :- If the response html only has one form, then retrieve all the data in that form that would be sent if the user simply hit the submit button, and POST that to the same URL.</p>
  
  <p>Having slept on it, using BeautifulSoup to parse the response content, look for a form and extract the data there would be an easy solution, and closer to what the user is actually going to see than looking through the response.context (e.g. a template doesn't have to render a form, so the user might not actually see it). The only downside is it will be a bit slow, I have hundreds of such tests to run.</p>
  
  <p>Any better ideas?</p>