Lines Matching defs:progress
139 Test that the progress handler is invoked once it is set.
143 def progress():
146 con.set_progress_handler(progress, 1)
158 def progress():
161 con.set_progress_handler(progress, 1)
168 con.set_progress_handler(progress, 2)
177 Test that returning a non-zero value stops the operation in progress.
180 def progress():
182 con.set_progress_handler(progress, 1)
191 Test that setting the progress handler to None clears the previously set handler.
195 def progress():
199 con.set_progress_handler(progress, 1)
202 self.assertEqual(action, 0, "progress handler was not cleared")