twisted.trial.test.test_util.StubReactor(object) class documentationtwisted.trial.test.test_util
(View In Hierarchy)
A reactor stub which contains enough functionality to be used with the
_Janitor.
| Instance Variable | iterations | A list of the arguments passed to iterate. |
| Instance Variable | removeAllCalled | Number of times that removeAll
was called. |
| Instance Variable | selectables | The value that will be returned from removeAll. |
| Instance Variable | delayedCalls | The value to return from getDelayedCalls. |
| Method | __init__ | |
| Method | iterate | Increment self.iterations. |
| Method | getDelayedCalls | Return self.delayedCalls. |
| Method | removeAll | Increment self.removeAllCalled and return
self.selectables. |
| Parameters | delayedCalls | See StubReactor.delayedCalls. |
| selectables | See StubReactor.selectables. |