> > 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 lik
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
> > 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' messa
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 for
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 django.test
5 matches
Mail list logo