twisted.test.proto_helpers.RaisingMemoryReactor(object)
class documentationtwisted.test.proto_helpers
View Source
(View In Hierarchy)
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.
Instance Variable | _listenException | An instance of an Exception |
Instance Variable | _connectException | An instance of an Exception |
Method | __init__ | |
Method | adoptStreamPort | Fake IReactorSocket.adoptStreamPort ,
that raises self._listenException . |
Method | listenTCP | Fake reactor.listenTCP , that raises
self._listenException . |
Method | connectTCP | Fake reactor.connectTCP , that raises
self._connectException . |
Method | listenSSL | Fake reactor.listenSSL , that raises
self._listenException . |
Method | connectSSL | Fake reactor.connectSSL , that raises
self._connectException . |
Method | listenUNIX | Fake reactor.listenUNIX , that raises
self._listenException . |
Method | connectUNIX | Fake reactor.connectUNIX , that raises
self._connectException . |
Fake IReactorSocket.adoptStreamPort
,
that raises self._listenException
.
Fake reactor.listenTCP
, that raises
self._listenException
.
Fake reactor.connectTCP
, that raises
self._connectException
.
Fake reactor.listenSSL
, that raises
self._listenException
.
Fake reactor.connectSSL
, that raises
self._connectException
.
Fake reactor.listenUNIX
, that raises
self._listenException
.
Fake reactor.connectUNIX
, that raises
self._connectException
.