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
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
2 matches
Mail list logo