'Test that the progress handler is invoked once it is set.'

def CheckProgressHandlerUsed(self):

    con = sqlite.connect(':memory:')
    progress_calls = []
    def progress():
        progress_calls.append(None)
        return 0
    con.set_progress_handler(progress, 1)
    con.execute('\n                                                create    table    foo(a,    b)\n                                                ')
    self.assertTrue(progress_calls)
