Re: Confused about testing a page protected with @login_required

2010-10-06 Thread Brandon Taylor
Apparently, this is a cookie related issue: http://stackoverflow.com/questions/2705235/django-test-failing-on-a-view-with-login-required I'm using Django 1.1.1 for use with Django-CMS and Python 2.6.5, so the problem with cookies as described by the Stack Overflow article explains why my test fail

Confused about testing a page protected with @login_required

2010-10-05 Thread Brandon Taylor
Hi everyone, I set up a bare-bones project with one view decorated with @login_required. I created an initial_data.json fixture with a user. I called self.client.login(username='foobar', passowrd='foobar') and it returned True. I assigned a response variable from self.client.get('/protected/') an