Re:HTTPretty 0.5.8 – mock HTTP requests in Python at the soc...
by kanzure on Thursday February 14, 2013 @03:52PM
(#5222178)
I wrote a wrapper around httpretty called httpetrified, which uses a python-requests serialization format. Instead of writing multiple lines inside the unit test describing the mocks, you can just record an actual response into a file and refer to it in a decorator.
https://github.com/kanzure/python-requestions#decorator