I once saw a parse_form(response.content) method which did this (for unittesting django applications)
parse_form(response.content)
response = client.get(\'/foo/\') # respons