#NEWLINE# def _verifyResourceProperties( self , job , resource ) : #NEWLINE# #INDENT# self . _verifyReadonlyResourceProperties ( job , dataset ) #NEWLINE# config = resource . get ( 'configuration' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'query' ) #NEWLINE# self . _verifyBooleanResourceProperties ( job , config ) #NEWLINE# if ( 'createDisposition' in config ) : #NEWLINE# #INDENT# self . assertEqual ( job . create_disposition , config [ 'createDisposition' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( job . create_disposition is None ) ) #NEWLINE# #UNINDENT# if ( 'defaultDataset' in config ) : #NEWLINE# #INDENT# dataset = job . default_dataset #NEWLINE# ds_ref = { #NEWLINE# #INDENT# 'projectId' : dataset . project , #NEWLINE# 'datasetId' : dataset . name , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( ds_ref , config [ 'defaultDataset' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( job . default_dataset is None ) ) #NEWLINE# #UNINDENT# if ( 'destinationTable' in config ) : #NEWLINE# #INDENT# table = job . destination #NEWLINE# tb_ref = { #NEWLINE# #INDENT# 'projectId' : table . project , #NEWLINE# 'datasetId' : table . dataset_name , #NEWLINE# 'tableId' : table . name , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( tb_ref , config [ 'destinationTable' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( job . destination is None ) ) #NEWLINE# #UNINDENT# if ( 'priority' in config ) : #NEWLINE# #INDENT# self . assertEqual ( job . priority , config [ 'priority' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( job . priority is None ) ) #NEWLINE# #UNINDENT# if ( 'writeDisposition' in config ) : #NEWLINE# #INDENT# self . assertEqual ( job . write_disposition , config [ 'writeDisposition' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( job . write_disposition is None ) )