Test ssh/channel.py.

Class MockConnection A mock for twisted.conch.ssh.connection.SSHConnection. Record the data that channels send, and when they try to close the connection.
Function connectSSHTransport Connect a SSHTransport which is already connected to a remote peer to the channel under test.
Class ChannelTests Tests for SSHChannel.
def connectSSHTransport(service, hostAddress=None, peerAddress=None):

Connect a SSHTransport which is already connected to a remote peer to the channel under test.

ParametersserviceService used over the connected transport. (type: SSHService)
hostAddressLocal address of the connected transport. (type: interfaces.IAddress)
peerAddressRemote address of the connected transport. (type: interfaces.IAddress)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.