'Verifies that cursor methods check wether base class __init__ was called.'

def CheckCursorConstructorCallCheck(self):

    class Cursor(sqlite.Cursor, ):
        def __init__(self, con):
            pass
    con = sqlite.connect(':memory:')
    cur = Cursor(con)
    try:
        cur.execute('select    4+5').fetchall()
        self.fail('should    have    raised    ProgrammingError')
    except sqlite.ProgrammingError:
        pass
    except:
        self.fail('should    have    raised    ProgrammingError')
