def test_rep_for_answer_comment_deleted(self):
     """Rep removed for a hard delete of an answer comment."""
     comment = AnswerCommentFactory()
     comment.delete()
     self.assertEqual(
         comment.author.reputation,
         self.reputation_history(comment.author)[0]
     )
 def test_rep_for_answer_comment_unpublished(self):
     """Rep removed when published set to False on an answer comment."""
     comment = AnswerCommentFactory()
     comment.published = False
     comment.save()
     self.assertEqual(
         comment.author.reputation,
         self.reputation_history(comment.author)[0]
     )
 def test_rep_for_answer_comment_unpublished(self):
     """Rep not added upon creation of an answer comment with published=
     False, added when published set to True.
     """
     comment = AnswerCommentFactory(published=False)
     self.assertEqual(
         comment.author.reputation,
         self.reputation_history(comment.author)[0]
     )
     comment.published = True
     comment.save()
     self.assertEqual(
         comment.author.reputation,
         self.reputation_history(comment.author)[0] +
         config.TINE_REP_FOR_ANSWER_COMMENT
     )