#NEWLINE# def test_extract_table_to_storage( self ) : #NEWLINE# #INDENT# from gcloud.bigquery.job import ExtractTableToStorageJob #NEWLINE# PROJECT = 'PROJECT' #NEWLINE# JOB = 'job_name' #NEWLINE# DATASET = 'dataset_name' #NEWLINE# SOURCE = 'source_table' #NEWLINE# DESTINATION = 'gs://bucket_name/object_name' #NEWLINE# creds = _Credentials ( ) #NEWLINE# http = object ( ) #NEWLINE# client = self . _makeOne ( project = PROJECT , credentials = creds , http = http ) #NEWLINE# dataset = client . dataset ( DATASET ) #NEWLINE# source = dataset . table ( SOURCE ) #NEWLINE# job = client . extract_table_to_storage ( JOB , source , DESTINATION ) #NEWLINE# self . assertTrue ( isinstance ( job , ExtractTableToStorageJob ) ) #NEWLINE# self . assertTrue ( ( job . _client is client ) ) #NEWLINE# self . assertEqual ( job . name , DATASET ) #NEWLINE# self . assertEqual ( job . source , source ) #NEWLINE# self . assertEqual ( list ( job . destination_uris ) , [ DESTINATION ] )