def test_forum_delete_with_user_and_topic(topic, user):
 assert (user.post_count == 1)
 topic.forum.delete([user])
 forum = Forum.query.filter_by(id=topic.forum_id).first()
 assert (forum is None)
 assert (user.post_count == 0)

def test_forum_delete_with_user_and_topic ( topic , user ) : assert ( user . post_count == 1 ) topic . forum . delete ( [ user ] ) forum = Forum . query . filter_by ( id = topic . forum_id ) . first ( ) assert ( forum is None ) assert ( user . post_count == 0 )
now test the delete forum method with a topic inside .