class documentation

class StubReactor: (source)

View In Hierarchy

A reactor stub which contains enough functionality to be used with the _Janitor.

Method __init__ No summary
Method getDelayedCalls Return self.delayedCalls.
Method iterate Increment self.iterations.
Method removeAll Increment self.removeAllCalled and return self.selectables.
Instance Variable delayedCalls The value to return from getDelayedCalls.
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.
def __init__(self, delayedCalls, selectables=None): (source)
Parameters
delayedCallsSee StubReactor.delayedCalls.
selectablesSee StubReactor.selectables.
def getDelayedCalls(self): (source)

Return self.delayedCalls.

def iterate(self, timeout=None): (source)

Increment self.iterations.

def removeAll(self): (source)

Increment self.removeAllCalled and return self.selectables.

delayedCalls = (source)

The value to return from getDelayedCalls.

iterations: list = (source)

A list of the arguments passed to iterate.

removeAllCalled: int = (source)

Number of times that removeAll was called.

selectables = (source)

The value that will be returned from removeAll.