Re: About response.status_code on testing

2010-03-02 Thread raj
You're Right. The problem is that my attempt at client.login() has failed somehow. Rajeesh. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, se

Re: About response.status_code on testing

2010-03-02 Thread raj
Had tried with login using client.login() and the above result was after that. Will try with printing out response.content. Thanks for the time spent. Rajeesh. On Mar 2, 7:03 pm, Daniel Roseman wrote: > Doing "print response.content" before the assertion should show what's > going on. My suspici

Re: About response.status_code on testing

2010-03-02 Thread Daniel Roseman
On Mar 2, 12:34 pm, raj wrote: > Hi all, > > Since my model admin.change_view raises an exception, I'm expecting > the response_code to be 500 on requesting for the url, '/admin/myApp/ > myModel/1/'. This happens to be so when accessed through browser. But > my unit test says it's still 200. Can s