#NEWLINE# def test_delete_dataset( self ) : #NEWLINE# #INDENT# 'tests delete_dataset' #NEWLINE# dataset = ImportRecord . objects . create ( name = 'dataset' , super_organization = self . org ) #NEWLINE# resp = self . client . delete ( reverse_lazy ( 'seed:delete_dataset' ) , data = json . dumps ( { #NEWLINE# #INDENT# 'organization_id' : self . org . id , #NEWLINE# 'dataset_id' : dataset . pk , #NEWLINE# #UNINDENT# } ) , content_type = 'application/json' ) #NEWLINE# self . assertDictEqual ( json . loads ( resp . content ) , { #NEWLINE# #INDENT# 'status' : 'success' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( ImportRecord . objects . filter ( pk = dataset . pk ) . exists ( ) )