The behavior of Django sessions changes between "standard" views code
and test code, making it unclear how test code is written for
sessions. Googling this yields two relevant discussions about this
issue:

1. "Easier manipulation of sessions by test client" [http://
code.djangoproject.com/ticket/10899]
2. "test.Client.session.save() raises error for anonymous
users" [http://code.djangoproject.com/ticket/11475]

I'm confused because both tickets have different ways of dealing with
this problem and they were both Accepted. I assume this means they
were patched and the behavior is now different. I also don't know to
which versions these patches would pertain.

If I'm writing a unit test in Django 1.0, how would I set up my
session store for sessions to work as they do in the browser?

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

Reply via email to