def test_forum_delete(forum):
 forum.delete()
 forum = Forum.query.filter_by(id=forum.id).first()
 assert (forum is None)

def test_forum_delete ( forum ) : forum . delete ( ) forum = Forum . query . filter_by ( id = forum . id ) . first ( ) assert ( forum is None )
test the delete forum method .