def test_rep_for_answer_novote_deleted(self):
     """Rep is unchanged for a hard delete of a no vote on an answer."""
     vote = AnswerVoteFactory(vote=0)
     vote.delete()
     self.assertEqual(
         vote.voted_on.author.reputation,
         self.reputation_history(vote.voted_on.author)[2]
     )
 def test_rep_for_answer_upvote_deleted(self):
     """Rep is changed for a hard delete of an upvote on an answer."""
     vote = AnswerVoteFactory(vote=1)
     vote.delete()
     self.assertEqual(
         vote.voted_on.author.reputation,
         self.reputation_history(vote.voted_on.author)[2] -
         config.TINE_REP_FOR_ANSWER_UPVOTE
     )