How to test urllib|urllib2-using code?

kj at
Thu Nov 5 16:15:56 CET 2009

In <hcs1r2$vgp$1 at> Lutz Horn <lutz.horn at> writes:


>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:


Thanks, that helped.


More information about the Python-list mailing list