@snippet
def table_exists(client, to_delete):
 DATASET_NAME = ('table_exists_dataset_%d' % (_millis(),))
 TABLE_NAME = ('table_exists_table_%d' % (_millis(),))
 dataset = client.dataset(DATASET_NAME)
 dataset.create()
 to_delete.append(dataset)
 table = dataset.table(TABLE_NAME, SCHEMA)
 assert (not table.exists())
 table.create()
 assert table.exists()
 to_delete.insert(0, table)

@ snippet def table_exists ( client , to_delete ) : DATASET_NAME = ( 'table_exists_dataset_%d' % ( _millis ( ) , ) ) TABLE_NAME = ( 'table_exists_table_%d' % ( _millis ( ) , ) ) dataset = client . dataset ( DATASET_NAME ) dataset . create ( ) to_delete . append ( dataset ) table = dataset . table ( TABLE_NAME , SCHEMA ) assert ( not table . exists ( ) ) table . create ( ) assert table . exists ( ) to_delete . insert ( 0 , table )
test existence of a table .