def test_date_between(self):
        value = self.sd.date_between(
            datetime.date(year=2000, month=1, day=1),
            datetime.date(year=2001, month=1, day=1),
        )
        self.assertTrue(isinstance(value, datetime.date))
        self.assertTrue(value > datetime.date(year=2000, month=1, day=1))
        self.assertTrue(value < datetime.date(year=2001, month=1, day=1))

        with self.assertRaises(ParameterError):
            self.sd.date_between(
                datetime.date(year=2001, month=1, day=1),
                datetime.date(year=2000, month=1, day=1),
            )
dataset/ETHPy150Open kaleidos/django-sampledatahelper/tests/tests.py/TestTimeHelpers.test_date_between/original