Malcolm Tredinnick wrote:
> Status code 302 is an HTTP redirect, which is what you would expect to
> see, since your view is always returning a HttpResponseRedirect. The
> test framework doesn't follow redirects.

What about? assertRedirects(response, expected_url, status_code=302, 
target_status_code=200)

http://www.djangoproject.com/documentation/testing/#assertions

-- 
Norman J. Harman Jr.
Senior Web Specialist, Austin American-Statesman
___________________________________________________________________________
You've got fun!  Check out Austin360.com for all the entertainment
info you need to live it up in the big city!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to