id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux
16106,Test client session not set for unauthenticated requests,Alexandru Plugaru,nobody,"In https://docs.djangoproject.com/en/1.3/topics/testing/#django.test.client.Client.session it says that I can do something like this in my tests:
{{{
def test_something(self):
session = self.client.session
session['somekey'] = 'test'
session.save()
}}}
However if the client is not logged-in, self.client.session returns a dict which will result in an !AttributeError.
",Bug,closed,Testing framework,1.3,Normal,duplicate,testclient,,Unreviewed,0,0,0,0,0,