def test_current_articles(self):
        """Returns unhelpful votes within time range"""
        r = _make_backdated_revision(90)

        for x in range(0, 3):
            _add_vote_in_past(r, 0, 3)

        for x in range(0, 2):
            _add_vote_in_past(r, 1, 3)

        old_data = {r.document.id: {'percentage': 0.2, 'total': 5.0}}

        result = _get_current_unhelpful(old_data)
        eq_(1, len(result))
        self.assertAlmostEqual(0.4, result[r.document.id]['currperc'])
        self.assertAlmostEqual(old_data[r.document.id]['percentage'] - 0.4,
                               result[r.document.id]['diffperc'])
        eq_(5, result[r.document.id]['total'])
dataset/ETHPy150Open mozilla/kitsune/kitsune/dashboards/tests/test_cron.py/TopUnhelpfulArticlesTests.test_current_articles/swapped operands of `-`