#NEWLINE# def test_using_both_query_and_table_fails( self ) : #NEWLINE# #INDENT# with self . assertRaises ( ValueError ) as exn : #NEWLINE# #INDENT# df . io . BigQuerySource ( table = 'dataset.table' , query = 'query' ) #NEWLINE# self . assertEqual ( exn . exception . message , 'Both a BigQuery table and a query were specified. Please specify only one of these.' )