#NEWLINE# def test_can_log_moderation_event( self ) : #NEWLINE# #INDENT# msg_type = ModerationLogMsg . INVITATION #NEWLINE# user = UserFactory ( ) #NEWLINE# moderator = ModeratorFactory ( ) #NEWLINE# comment = 'This is my comment' #NEWLINE# log = log_moderator_event ( msg_type = user , user = user , moderator = moderator , comment = comment ) #NEWLINE# logs = ModerationLogMsg . objects . all ( ) #NEWLINE# self . assertIn ( log , logs )