Part of lp.services.googlesearch.tests
This function replaces urlfetch() with a function that raises an error.