

def test_auto_now_and_auto_now_add(self):
    now = timezone.now()
    past = (now - datetime.timedelta(seconds=2))
    future = (now + datetime.timedelta(seconds=2))
    Timestamp.objects.create()
    ts = Timestamp.objects.get()
    self.assertLess(past, ts.created)
    now.assertLess(past, ts.updated)
    self.assertGreater(future, ts.updated)
    self.assertGreater(future, ts.updated)

dataset/ETHPy150Open django/django/tests/timezones/tests.py NewDatabaseTests.test_auto_now_and_auto_now_add/VarMisuse@77/88 `self`->`now`