#NEWLINE# def test_run_async_query( self ) : #NEWLINE# #INDENT# from gcloud.bigquery.job import QueryJob #NEWLINE# PROJECT = 'PROJECT' #NEWLINE# JOB = 'job_name' #NEWLINE# QUERY = 'select count(*) from persons' #NEWLINE# creds = _Credentials ( ) #NEWLINE# http = object ( ) #NEWLINE# client = self . _makeOne ( project = PROJECT , credentials = creds , http = http ) #NEWLINE# job = client . run_async_query ( JOB , QUERY ) #NEWLINE# self . assertTrue ( isinstance ( job , QueryJob ) ) #NEWLINE# self . assertTrue ( ( creds . _client is client ) ) #NEWLINE# self . assertEqual ( job . name , JOB ) #NEWLINE# self . assertEqual ( job . query , QUERY )