'Test that the opcode argument is respected.'

def CheckOpcodeCount(self):

    con = sqlite.connect(':memory:')
    progress_calls = []
    def progress():
        progress_calls.append(None)
        return 0
    con.set_progress_handler(progress, 1)
    curs = con.cursor()
    curs.execute('\n                                                create    table    foo    (a,    b)\n                                                ')
    first_count = len(progress_calls)
    progress_calls = []
    con.set_progress_handler(progress, 2)
    curs.execute('\n                                                create    table    bar    (a,    b)\n                                                ')
    second_count = len(progress_calls)
    self.failUnless((first_count > second_count))
