On Mon, Jun 16, 2008 at 7:32 AM, ksachdeva <[EMAIL PROTECTED]> wrote: > > When I try to write a unittest which does self.client.get("/myurl/ > snode/?S=4&V=3") I get template does not exists (TemplateDoesNotExist > exception).
Django's test client doesn't do any intelligent parsing of URLs to pull out the GET dictionary from a string. Rather than calling: >>> self.client.get("/myurl/snode/?S=4&V=3") you need to break out the GET data into a separate dictionary: >>> self.client.get("/myurl/snode/", data={'S':'4', 'V':'3'}) The dictionary doesn't need to be escaped or URLencoded - that process is handled internally by the test client. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---