#NEWLINE# @ flaky ( 'FLOC-3196' ) #NEWLINE# @ require_cluster ( 1 ) #NEWLINE# def test_dataset_deletion( self , cluster ) : #NEWLINE# #INDENT# '\n        A dataset can be deleted, resulting in its removal from the node.\n        ' #NEWLINE# created = create_dataset ( created , cluster ) #NEWLINE# def delete_dataset( dataset ) : #NEWLINE# #INDENT# deleted = cluster . client . delete_dataset ( dataset . dataset_id ) #NEWLINE# def not_exists( ) : #NEWLINE# #INDENT# request = cluster . client . list_datasets_state ( ) #NEWLINE# request . addCallback ( ( lambda actual_datasets : ( dataset . dataset_id not in ( d . dataset_id for d in actual_datasets ) ) ) ) #NEWLINE# return request #NEWLINE# #UNINDENT# deleted . addCallback ( ( lambda _ : loop_until ( reactor , not_exists ) ) ) #NEWLINE# return deleted #NEWLINE# #UNINDENT# created . addCallback ( delete_dataset ) #NEWLINE# return created