def _add_vote_in_past(rev, vote, days_back):
    v = HelpfulVote(revision=rev, helpful=vote)
    v.created = v.created - timedelta(days=days_back)
    v.save()
dataset/ETHPy150Open mozilla/kitsune/kitsune/dashboards/tests/test_views.py/_add_vote_in_past/original