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.
iterations =
A list of the arguments passed to iterate.
removeAllCalled =
Number of times that removeAll was called.
selectables =
The value that will be returned from removeAll.
delayedCalls =
The value to return from getDelayedCalls.
def __init__(self, delayedCalls, selectables=None):
ParametersdelayedCallsSee StubReactor.delayedCalls.
selectablesSee StubReactor.selectables.
def iterate(self, timeout=None):

Increment self.iterations.

def getDelayedCalls(self):

Return self.delayedCalls.

def removeAll(self):

Increment self.removeAllCalled and return self.selectables.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.