#NEWLINE# def test_load_table_from_storage( self ) : #NEWLINE# #INDENT# from gcloud.bigquery.job import LoadTableFromStorageJob #NEWLINE# PROJECT = 'PROJECT' #NEWLINE# JOB = 'job_name' #NEWLINE# DATASET = 'dataset_name' #NEWLINE# DESTINATION = 'destination_table' #NEWLINE# SOURCE_URI = 'http://example.com/source.csv' #NEWLINE# creds = _Credentials ( ) #NEWLINE# http = object ( ) #NEWLINE# client = self . _makeOne ( project = PROJECT , credentials = creds , http = http ) #NEWLINE# dataset = client . dataset ( DATASET ) #NEWLINE# destination = dataset . table ( DESTINATION ) #NEWLINE# job = client . load_table_from_storage ( JOB , dataset , SOURCE_URI ) #NEWLINE# self . assertTrue ( isinstance ( job , LoadTableFromStorageJob ) ) #NEWLINE# self . assertTrue ( ( job . _client is client ) ) #NEWLINE# self . assertEqual ( job . name , JOB ) #NEWLINE# self . assertEqual ( list ( job . source_uris ) , [ SOURCE_URI ] ) #NEWLINE# self . assertTrue ( ( job . destination is destination ) )