def test_has_no_op_delta(self, reddit_class): self.comment.submission.author.name = 'Jane' bot.update_submission_flair(self.comment) set_flair = reddit_class.return_value.set_flair set_flair.assert_called_with(config.SUBREDDIT, self.comment.submission, None, None)
def test_has_op_delta(self, reddit_class): self.comment.submission.author.name = 'John' bot.update_submission_flair(self.comment) set_flair = reddit_class.return_value.set_flair set_flair.assert_called_with(config.SUBREDDIT, self.comment.submission, '[Deltas Awarded]', 'OPdelta')