title: How can use mock on urllib2 so that no external call gets made and I can raise an exception on read()?
body: <p>I'd like to raise <code>BadStatusLine</code> when read gets called. How can I accomplish that with <a href="http://www.voidspace.org.uk/python/mock/" rel="nofollow">mock</a>?</p>