def test_run_asynchronous_query_ResponseNotReady(self):
        mock_job_collection = mock.Mock()
        mock_job_collection_insert = mock.Mock()

        self.mock_authenticated_service.jobs.return_value = mock_job_collection
        mock_job_collection.insert.return_value = mock_job_collection_insert
        mock_job_collection_insert.execute.side_effect = httplib.ResponseNotReady(
        )

        with self.assertRaises(external.BigQueryCommunicationError):
            self.call.run_asynchronous_query('dummy_query_string')
BigQueryCall should wrap ResponseNotReady to a BigQueryCommunicationError.
dataset/ETHPy150Open m-lab/telescope/tests/test_external.py/BigQueryCallTest.test_run_asynchronous_query_ResponseNotReady