class twisted.internet.testing.RaisingMemoryReactor: (source)
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__ | |
Method | adoptStreamPort | Fake IReactorSocket.adoptStreamPort , that raises _listenException . |
Method | listenTCP | Fake IReactorTCP.listenTCP , that raises _listenException . |
Method | connectTCP | Fake IReactorTCP.connectTCP , that raises _connectException . |
Method | listenSSL | Fake IReactorSSL.listenSSL , that raises _listenException . |
Method | connectSSL | Fake IReactorSSL.connectSSL , that raises _connectException . |
Method | listenUNIX | Fake IReactorUNIX.listenUNIX , that raises _listenException . |
Method | connectUNIX | Fake IReactorUNIX.connectUNIX , that raises _connectException . |
Method | adoptDatagramPort | Fake IReactorSocket.adoptDatagramPort , that raises _connectException . |
Method | adoptStreamConnection | Fake IReactorSocket.adoptStreamConnection , that raises _connectException . |
Instance Variable | _listenException | An instance of an Exception |
Instance Variable | _connectException | An instance of an Exception |
Fake IReactorSocket.adoptStreamPort
, that raises _listenException
.
Fake IReactorTCP.listenTCP
, that raises _listenException
.
Fake IReactorTCP.connectTCP
, that raises _connectException
.
Fake IReactorSSL.listenSSL
, that raises _listenException
.
Fake IReactorSSL.connectSSL
, that raises _connectException
.
Fake IReactorUNIX.listenUNIX
, that raises _listenException
.
Fake IReactorUNIX.connectUNIX
, that raises _connectException
.
Fake IReactorSocket.adoptDatagramPort
, that raises _connectException
.
Fake IReactorSocket.adoptStreamConnection
, that raises _connectException
.