'Checks if cursors on the connection are set into a "reset" state
when a rollback is done on the connection.'

def CheckRollbackCursorConsistency(self):

    con = sqlite.connect(':memory:')
    cur = con.cursor()
    cur.execute('create    table    test(x)')
    cur.execute('insert    into    test(x)    values    (5)')
    cur.execute('select    1    union    select    2    union    select    3')
    con.rollback()
    with self.assertRaises(sqlite.InterfaceError):
        cur.fetchall()
