Re: problems with authentication of test client

2010-05-28 Thread Karen Tracey
On Fri, May 28, 2010 at 5:42 AM, irum wrote: > I have also tried after updating my django-trunk but the problem > persisits. Should I downgrade to Python 2.6.4 to fix this? > The problem you reference has been fixed in 1.2.x (and also 1.1.2), so if updating to current Django code did not fix the

Re: problems with authentication of test client

2010-05-28 Thread irum
'c' is written here by mistake, I was trying different things by and commented out the wrong statement while pasting. It was, r = self.client.post('/createauction/', post_data) Also, could the problem be with my Python version 2.6.5 and Django 1.1.1 as stated in this thread: http://groups.googl

Re: problems with authentication of test client

2010-05-28 Thread Daniel Roseman
On May 28, 9:23 am, irum wrote: > import unittest > from django.test.client import Client > from django.test import Client, TestCase > from django.contrib.auth import authenticate > from django.contrib.auth.models import * > from django.core import mail > import datetime > import time > > class

problems with authentication of test client

2010-05-28 Thread irum
Hi, I am trying to test my pages that need authentication. But, I am not able to test views that need authentication. I have tried following threads about logging in test client in this group and django documentation, but still cant figure out. This my view I am trying to test: def cauction(reque