How to test urllib|urllib2-using code?

Lutz Horn lutz.horn at fastmail.fm
Wed Nov 4 09:06:45 EST 2009


Hi,

kj wrote:
> I want to write some tests for code that uses both urllib and
> urllib2.

Take a look at the discussion under the title "How can one mock/stub
python module like urllib" at stackoverflow:

http://stackoverflow.com/questions/295438/how-can-one-mock-stub-python-module-like-urllib

Lutz



More information about the Python-list mailing list