[Web-SIG] Dealing with urllib, urllib2, and urlparse
Joe Gregorio
joe at bitworking.org
Fri Feb 22 20:51:16 CET 2008
On Fri, Feb 22, 2008 at 2:09 PM, Ian Bicking <ianb at colorstudy.com> wrote:
> I guess this is a test-related feature request: something that would be
> nice, and that I don't believe httplib2 specifically allows (though
> maybe I am unaware of it) is a clear/documented way to mock http calls.
> wsgi_intercept provides this in a kind of general way, and includes
> some httplib2 support, but direct support in httplib2 (and the stdlib)
> would be very nice, and I think encourage people to do better testing.
I have a MockHttp in another project that I use for testing code
that uses httplib2, is this what you'd like to see included in
httplib2 itself?
http://code.google.com/p/feedvalidator/source/browse/trunk/apptestsuite/client/atompubbase/tests/mockhttp.py
Thanks,
-joe
--
Joe Gregorio http://bitworking.org
More information about the Web-SIG
mailing list