def setUp(self):
self.import_hook = ImportHook('<STR_LIT>')<EOL>sys.meta_path.insert(<NUM_LIT:0>, self.import_hook)<EOL>try:<EOL><INDENT>self.patcher = mock.patch('<STR_LIT>', fake_urllib2_urlopen)<EOL>self.patcher.start()<EOL><DEDENT>except ImportError:<EOL><INDENT>self.patcher = mock.patch('<STR_LIT>',<EOL>fake_urllib2_urlopen)<EOL>self.patcher.start()<EOL><DEDENT>import diffbot<EOL>diffbot = imp.reload(diffbot)<EOL>del diffbot.requests<EOL>self.client = diffbot.Client(token=TOKEN)<EOL>
Set up a mock patcher.

        This will make the `requests` library unavailable in `diffbot`.