#NEWLINE# def test_w_request_returning_None( self ) : #NEWLINE# #INDENT# from gcloud._testing import _Monkey #NEWLINE# from gcloud.streaming import http_wrapper as MUT #NEWLINE# from gcloud.streaming.exceptions import RequestError #NEWLINE# INFO = None #NEWLINE# CONTENT = None #NEWLINE# CONN_TYPE = object ( ) #NEWLINE# _http = _Http ( ( INFO , CONTENT ) ) #NEWLINE# _http . connections = { #NEWLINE# #INDENT# 'http' : CONN_TYPE , #NEWLINE# #UNINDENT# } #NEWLINE# _httplib2 = _Dummy ( debuglevel = 1 ) #NEWLINE# _request = _Request ( ) #NEWLINE# with _Monkey ( MUT , httplib2 = _httplib2 ) : #NEWLINE# #INDENT# with self . assertRaises ( RequestError ) : #NEWLINE# #INDENT# self . _callFUT ( _http , _request ) #NEWLINE# #UNINDENT# #UNINDENT# self . _verify_requested ( _http , _request , connection_type = CONN_TYPE )