On 3/27/07, Orin <[EMAIL PROTECTED]> wrote:
> I'm coding dtests for django views. I'm using mock object as django
> request, but don't know how to emulate user session (session id).
> Because of login decorator I can't access the other parts of my
> function.

The built-in Django test client can send requests to your views, and
can handle logging in as well:

http://www.djangoproject.com/documentation/testing/#test-client

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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