def test_class(self):
        today = date.today()
        self.extension.set_value(today)
        self.assertEqual(self.extension.get_class(), 'today')
        self.extension.set_value(today + timedelta(days=1))
        self.assertEqual(self.extension.get_class(), 'tomorrow')
        self.extension.set_value(today + timedelta(days=10))
        self.assertEqual(self.extension.get_class(), 'future')
        self.extension.set_value(timedelta(days=1) - today)
        self.assertEqual(self.extension.get_class(), 'yesterday')
        self.extension.set_value(today - timedelta(days=10))
        self.assertEqual(self.extension.get_class(), 'past')
dataset/ETHPy150Open Net-ng/kansha/kansha/card_addons/due_date/tests.py/CardDueDateTest.test_class/swapped operands of `-`