def test_future_date(self):
        value = self.sd.future_date()
        self.assertTrue(isinstance(value, datetime.date))

        self.assertTrue(value >= datetime.date.today())
        self.assertTrue((datetime.date.today() + datetime.timedelta(days=365)) <= value)

        value = self.sd.future_date(0, 10)
        self.assertTrue(value >= datetime.date.today())
        self.assertTrue(value <= (datetime.date.today() + datetime.timedelta(days=10)))

        with self.assertRaises(ParameterError):
            self.sd.future_date(100, 0)

        with self.assertRaises(ParameterError):
            self.sd.future_date(-10, 10)
dataset/ETHPy150Open kaleidos/django-sampledatahelper/tests/tests.py/TestTimeHelpers.test_future_date/swapped operands of `<=`