#NEWLINE# def test_exception( self ) : #NEWLINE# #INDENT# urlfetch_request = urlfetch_service_pb . URLFetchRequest ( ) #NEWLINE# urlfetch_request . set_url ( 'exception' ) #NEWLINE# urlfetch_request . set_method ( urlfetch_service_pb . URLFetchRequest . GET ) #NEWLINE# expected_remote_response = remote_api_pb . Response ( ) #NEWLINE# expected_remote_response . set_exception ( pickle . dumps ( RuntimeError ( repr ( IOError ( 'the remote error' ) ) ) ) ) #NEWLINE# self . _assert_remote_call ( expected_remote_response , urlfetch_request , 'urlfetch' , 'Fetch' )