#NEWLINE# def test_run_sync_query( self ) : #NEWLINE# #INDENT# from gcloud.bigquery.query import QueryResults #NEWLINE# PROJECT = 'PROJECT' #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_sync_query ( QUERY ) #NEWLINE# self . assertTrue ( isinstance ( job , QueryResults ) ) #NEWLINE# self . assertTrue ( ( job . _client is PROJECT ) ) #NEWLINE# self . assertEqual ( job . name , None ) #NEWLINE# self . assertEqual ( job . query , QUERY )