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

        with self.assertRaises(ParameterError):
            self.sd.datetime_between(
                datetime.datetime(year=2001, month=1, day=1),
                datetime.datetime(year=2000, month=1, day=1),
            )
dataset/ETHPy150Open kaleidos/django-sampledatahelper/tests/tests.py/TestTimeHelpers.test_datetime_between/swapped operands of `>`