class documentation
class RaisingMemoryReactor:
Known subclasses: twisted.internet.test.test_endpoints.RaisingMemoryReactorWithClock
Constructor: RaisingMemoryReactor(listenException, connectException)
Implements interfaces: twisted.internet.interfaces.IReactorSocket
, twisted.internet.interfaces.IReactorSSL
, twisted.internet.interfaces.IReactorTCP
, twisted.internet.interfaces.IReactorUNIX
A fake reactor to be used in tests. It accepts TCP connection setup attempts, but they will fail.
Method | __init__ |
No summary |
Method | adopt |
Fake IReactorSocket.adoptDatagramPort , that raises _connectException . |
Method | adopt |
Fake IReactorSocket.adoptStreamConnection , that raises _connectException . |
Method | adopt |
Fake IReactorSocket.adoptStreamPort , that raises _listenException . |
Method | connect |
Fake IReactorSSL.connectSSL , that raises _connectException . |
Method | connect |
Fake IReactorTCP.connectTCP , that raises _connectException . |
Method | connect |
Fake IReactorUNIX.connectUNIX , that raises _connectException . |
Method | listen |
Fake IReactorSSL.listenSSL , that raises _listenException . |
Method | listen |
Fake IReactorTCP.listenTCP , that raises _listenException . |
Method | listen |
Fake IReactorUNIX.listenUNIX , that raises _listenException . |
Instance Variable | _connect |
An instance of an Exception |
Instance Variable | _listen |
An instance of an Exception |
Parameters | |
listen | An instance of an Exception to raise when any listen method is called. |
connect | An instance of an Exception to raise when any connect method is called. |