#NEWLINE# def test_run_asynchronous_query_ResponseNotReady( self ) : #NEWLINE# #INDENT# 'BigQueryCall should wrap ResponseNotReady to a BigQueryCommunicationError.' #NEWLINE# mock_job_collection = mock . Mock ( ) #NEWLINE# mock_job_collection_insert = mock . Mock ( ) #NEWLINE# self . mock_authenticated_service . jobs . return_value = mock_job_collection #NEWLINE# mock_job_collection . insert . return_value = mock_job_collection #NEWLINE# mock_job_collection_insert . execute . side_effect = httplib . ResponseNotReady ( ) #NEWLINE# with self . assertRaises ( external . BigQueryCommunicationError ) : #NEWLINE# #INDENT# self . call . run_asynchronous_query ( 'dummy_query_string' )