RE: test client login problems

2007-06-28 Thread Chris Brand
> > Ahhh. So after I've used login() once in a test, get() will pass the > > existing session cookie, in which case my test to retrieve two pages > while > > logged in would look like : > > client.login(...) > > client.get(...) > > Does that sound right ? I'll try that later today. > > Sounds

Re: test client login problems

2007-06-27 Thread Russell Keith-Magee
On 6/28/07, Chris Brand <[EMAIL PROTECTED]> wrote: > > > The 'bool object has no attribute status_code' message is generated > > because the login() method visits the named url, and tries to fill in > > the form it finds. If you are already logged in, and you visit a > > login-decorated view, the

RE: test client login problems

2007-06-27 Thread Chris Brand
> > I'm running into problems with the test client's login method. > > Specifically, within a single test method, the first login succeeds but > the > > second one fails. > > Is this something that should work ? Am I doing something wrong ? > > The 'bool object has no attribute status_code'

Re: test client login problems

2007-06-26 Thread Russell Keith-Magee
On 6/20/07, Chris Brand <[EMAIL PROTECTED]> wrote: > > I'm running into problems with the test client's login method. > Specifically, within a single test method, the first login succeeds but the > second one fails. > Is this something that should work ? Am I doing something wrong ? Apologies

test client login problems

2007-06-19 Thread Chris Brand
I'm running into problems with the test client's login method. Specifically, within a single test method, the first login succeeds but the second one fails. Is this something that should work ? Am I doing something wrong ? Here's an example : from django.test.client import Client from