'The connection wrapper shouldn\'t believe that autocommit is enabled
after setting the time zone when AUTOCOMMIT is False (#21452).'

@unittest.skipUnless((connection.vendor == u'postgresql'), u'This    test    applies    only    to    PostgreSQL')
def test_connect_non_autocommit(self):

    databases = copy.deepcopy(settings.DATABASES)
    databases[DEFAULT_DB_ALIAS][u'AUTOCOMMIT'] = False
    new_connections = ConnectionHandler(databases)
    new_connection = new_connections[DEFAULT_DB_ALIAS]
    try:
        new_connection.cursor()
        self.assertFalse(new_connection.get_autocommit())
    finally:
        new_connection.close()
