class documentation

Tests that need to be run on both the server and the client.

Method checkDisconnected Helper function to check if the transport disconnected.
Method connectModifiedProtocol Helper function to connect a modified protocol to the test protocol and test for disconnection.
Method test_disconnectIfCantMatchCipher Like test_disconnectIfCantMatchKex, but for the encryption.
Method test_disconnectIfCantMatchCompression Like test_disconnectIfCantMatchKex, but for the compression.
Method test_disconnectIfCantMatchKex Test that the transport disconnects if it can't match the key exchange
Method test_disconnectIfCantMatchKeyAlg Like test_disconnectIfCantMatchKex, but for the key algorithm.
Method test_disconnectIfCantMatchMAC Like test_disconnectIfCantMatchKex, but for the MAC.
Method test_getHost Test that the transport's getHost method returns an SSHTransportAddress with the IAddress of the host.
Method test_getPeer Test that the transport's getPeer method returns an SSHTransportAddress with the IAddress of the peer.
def checkDisconnected(self, kind=None): (source)

Helper function to check if the transport disconnected.

def connectModifiedProtocol(self, protoModification, kind=None): (source)

Helper function to connect a modified protocol to the test protocol and test for disconnection.

def test_disconnectIfCantMatchCipher(self): (source)

Like test_disconnectIfCantMatchKex, but for the encryption.

def test_disconnectIfCantMatchCompression(self): (source)

Like test_disconnectIfCantMatchKex, but for the compression.

def test_disconnectIfCantMatchKex(self): (source)

Test that the transport disconnects if it can't match the key exchange

def test_disconnectIfCantMatchKeyAlg(self): (source)

Like test_disconnectIfCantMatchKex, but for the key algorithm.

def test_disconnectIfCantMatchMAC(self): (source)

Like test_disconnectIfCantMatchKex, but for the MAC.

def test_getHost(self): (source)

Test that the transport's getHost method returns an SSHTransportAddress with the IAddress of the host.

def test_getPeer(self): (source)

Test that the transport's getPeer method returns an SSHTransportAddress with the IAddress of the peer.