twisted.conch.test.test_session.StubConnection(object)
class documentationtwisted.conch.test.test_session
(View In Hierarchy)
A stub for twisted.conch.ssh.connection.SSHConnection. Record the data that channels send, and when they try to close the connection.
Instance Variable | data | a dict
mapping SSHChannel s to a list of bytes
of data they sent. |
Instance Variable | extData | a dict
mapping SSHChannel s
to a list of tuple
of (int ,
bytes )
of extended data they sent. |
Instance Variable | requests | a dict
mapping SSHChannel s
to a list of tuple
of (str ,
bytes )
of channel requests they made. |
Instance Variable | eofs | a dict
mapping SSHChannel s
to true if they have sent an EOF. |
Instance Variable | closes | a dict
mapping SSHChannel s
to true if they have sent a close. |
Method | __init__ | Initialize our instance variables. |
Method | logPrefix | Return our logging prefix. |
Method | sendData | Record the sent data. |
Method | sendExtendedData | Record the sent extended data. |
Method | sendRequest | Record the sent channel request. |
Method | sendEOF | Record the sent EOF. |
Method | sendClose | Record the sent close. |