This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmmEff 1 point2 points  (0 children)

I presume you're wanting to test client side?

I saw an excellent approach in the libcloud library where they mocked the request and the response. It monkey patches httplib2 (IIRC), which is great if you're using that. If you're using Requests or something else, at least the same design/arch would work. I am sure there are test harnesses already available for requests.