def test_forum_save(category, moderator_user):
 forum = Forum(title='Test Forum', category_id=category.id)
 forum.moderators = [moderator_user]
 forum.save()
 assert (forum.title == 'Test Forum')
 assert (forum.moderators == [moderator_user])

def test_forum_save ( category , moderator_user ) : forum = Forum ( title = 'Test Forum' , category_id = category . id ) forum . moderators = [ moderator_user ] forum . save ( ) assert ( forum . title == 'Test Forum' ) assert ( forum . moderators == [ moderator_user ] )
test the save forum method .