<s> from eventlet import patcher <EOL> from eventlet . green import socket <EOL> from eventlet . green import urllib2 <EOL> patcher . inject ( '<STR_LIT>' , <EOL> globals ( ) , <EOL> ( '<STR_LIT>' , socket ) , <EOL> ( '<STR_LIT>' , urllib2 ) ) <EOL> HandlerTests . test_file = patcher . patch_function ( HandlerTests . test_file , ( '<STR_LIT>' , socket ) ) <EOL> HandlerTests . test_cookie_redirect = patcher . patch_function ( HandlerTests . test_cookie_redirect , ( '<STR_LIT>' , urllib2 ) ) <EOL> try : <EOL> OpenerDirectorTests . test_badly_named_methods = patcher . patch_function ( OpenerDirectorTests . test_badly_named_methods , ( '<STR_LIT>' , urllib2 ) ) <EOL> except AttributeError : <EOL> pass <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
