Re: What's the best way to simulate a request?

2012-05-17 Thread Prahlad
To simulate requests I am using following code and works perfect for me: from django.test.client import Client c = Client() response = c.get('/url/you/want/to/request') On Tuesday, July 8, 2008 7:16:54 AM UTC+5:30, Andrew wrote: > > Here's the situation: > > I'm creating an RESTful

Re: What's the best way to simulate a request?

2008-07-08 Thread Norman Harman
Andrew wrote: > Here's the situation: > > I'm creating an RESTful internal API as an app in our project. Our > 'main' app (we'll call it main) is a client of the API app. Since > we're building the API piece by piece as we use it, the emphasis on > all of this is simple simple simple -- with our

What's the best way to simulate a request?

2008-07-07 Thread Andrew
Here's the situation: I'm creating an RESTful internal API as an app in our project. Our 'main' app (we'll call it main) is a client of the API app. Since we're building the API piece by piece as we use it, the emphasis on all of this is simple simple simple -- with our eye on eventually opening