@snippet
def dataset_exists(client, to_delete):
 DATASET_NAME = ('dataset_exists_%d' % (_millis(),))
 dataset = client.dataset(DATASET_NAME)
 to_delete.append(dataset)
 assert (not dataset.exists())
 dataset.create()
 assert dataset.exists()

@ snippet def dataset_exists ( client , to_delete ) : DATASET_NAME = ( 'dataset_exists_%d' % ( _millis ( ) , ) ) dataset = client . dataset ( DATASET_NAME ) to_delete . append ( dataset ) assert ( not dataset . exists ( ) ) dataset . create ( ) assert dataset . exists ( )
test existence of a dataset .