On Sat, 2007-12-29 at 20:27 -0800, shabda wrote:
> Using the testing framework how can we make sure that the correct view
> got called.
> 
> Documentation at http://www.djangoproject.com/documentation/testing/#testcase
> says that
> (django.test.client can be used to) "Test that the correct view is
> executed for a given URL.", but I can't figure out how.

It doesn't seem to be possible to work out the exact Python function
that was called (the necessary information isn't always available, since
it could, for example, be a middleware function that short-circuited
things).

Regards,
Malcolm

-- 
Borrow from a pessimist - they don't expect it back. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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