#NEWLINE# def test_securitygroup_delete( self ) : #NEWLINE# #INDENT# gid = '12345678-1234-5678-9123-123456789012' #NEWLINE# self . _create_group ( gid ) #NEWLINE# values_before = self . _get_base_values ( gid ) #NEWLINE# securitygroup = db . securitygroup_create ( self . user_ctxt , values_before ) #NEWLINE# securitygroup_after = db . securitygroup_delete ( self . user_ctxt , self , securitygroup [ 'securitygroup_id' ] ) #NEWLINE# self . assertEqual ( 1 , securitygroup_after [ 'deleted' ] ) #NEWLINE# self . assertIsNotNone ( securitygroup_after . get ( 'deleted_at' ) )