def test_datetime(self):
        value = self.sd.datetime()
        self.assertTrue(isinstance(value, datetime.datetime))

        self.assertTrue((datetime.datetime.utcnow().replace(tzinfo=utc) - datetime.timedelta(minutes=1440)) >= value)
        self.assertTrue(value <= (datetime.datetime.utcnow().replace(tzinfo=utc) + datetime.timedelta(minutes=1440)))

        value = self.sd.datetime(-10, 10)
        self.assertTrue(value >= (datetime.datetime.utcnow().replace(tzinfo=utc) - datetime.timedelta(minutes=10)))
        self.assertTrue(value <= (datetime.datetime.utcnow().replace(tzinfo=utc) + datetime.timedelta(minutes=10)))

        with self.assertRaises(ParameterError):
            self.sd.datetime(100, 0)
dataset/ETHPy150Open kaleidos/django-sampledatahelper/tests/tests.py/TestTimeHelpers.test_datetime/swapped operands of `>=`