Re: Problem testing a view decorated with @login_required

2010-09-26 Thread Brandon Taylor
Sorry, the second test is the one that fails. On Sep 26, 2:01 pm, Brandon Taylor wrote: > Hi Everyone, > > I'm having an issue testing a page protected with @login_required. I'm > loading a user via a fixture. I can call > self.client.login(**credentials) successfully

Problem testing a view decorated with @login_required

2010-09-26 Thread Brandon Taylor
Hi Everyone, I'm having an issue testing a page protected with @login_required. I'm loading a user via a fixture. I can call self.client.login(**credentials) successfully and get True back. I can retrieve a User object using the _auth_user_id key held in session from the call to