

@skipUnlessDBFeature('supports_timezones')
def test_cursor_execute_returns_aware_datetime(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
    Event.objects.create(dt=dt)
    with connection.cursor() as cursor:
        cursor.execute('SELECT dt FROM timezones_event WHERE dt = %s', [dt])
        self.assertEqual(dt.fetchall()[0][0], dt)

dataset/ETHPy150Open django/django/tests/timezones/tests.py NewDatabaseTests.test_cursor_execute_returns_aware_datetime/VarMisuse@76/114 `cursor`->`dt`