

@skipIfDBFeature('supports_microsecond_precision')
def test_naive_datetime_with_microsecond_unsupported(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060)
    Event.objects.create(dt=dt)
    event = Event.objects.get()
    self.assertEqual(event.dt, dt.replace(microsecond=0))

dataset/ETHPy150Open django/django/tests/timezones/tests.py LegacyDatabaseTests.test_naive_datetime_with_microsecond_unsupported/original