Re: test's client.post says post but request.method says GET

2010-07-30 Thread Phlip
On Jul 30, 3:28 am, Phlip wrote: > > What's the value of `self.url`? One possibility is that it doesn't end > > with a slash > > Ends with a slash. I'm now checking the response goodies, like > response.status, to see if any other redirections happen! Yup - a redirect. My colleagues left SSL tu

Re: test's client.post says post but request.method says GET

2010-07-30 Thread Phlip
> What's the value of `self.url`? One possibility is that it doesn't end > with a slash Ends with a slash. I'm now checking the response goodies, like response.status, to see if any other redirections happen! -- You received this message because you are subscribed to the Google Groups "Django u

Re: test's client.post says post but request.method says GET

2010-07-30 Thread Daniel Roseman
On Jul 30, 1:18 am, Phlip wrote: > Django aficionados: > > Here's my test code: > >         from django.test.client import Client >         self.client = Client() >         from django.core.files.base import ContentFile >         file_content = ContentFile(sample_inventory_update_cvs()) >        

Re: test's client.post says post but request.method says GET

2010-07-29 Thread Phlip
forgot to mention Django 1.1.2 On Jul 29, 5:18 pm, Phlip wrote: > Django aficionados: > > Here's my test code: > >         from django.test.client import Client >         self.client = Client() >         from django.core.files.base import ContentFile >         file_content = ContentFile(sample_in