def test_rep_for_question_novote_deleted(self):
     """Rep is unchanged for a hard delete of a no vote on a question."""
     vote = QuestionVoteFactory(vote=0)
     vote.delete()
     self.assertEqual(
         vote.voted_on.author.reputation,
         self.reputation_history(vote.voted_on.author)[2]
     )
 def test_rep_for_question_upvote_deleted(self):
     """Rep is changed for a hard delete of an upvote on a question."""
     vote = QuestionVoteFactory(vote=1)
     vote.delete()
     self.assertEqual(
         vote.voted_on.author.reputation,
         self.reputation_history(vote.voted_on.author)[2] -
         config.TINE_REP_FOR_QUESTION_UPVOTE
     )