'Assert that the transport for the given protocol is still connected.
L{SSHCommandClientEndpoint.existingConnection} re-uses an SSH connected
created by some other code, so other code is responsible for cleaning
it up.'

def assertClientTransportState(self, client, immediateClose):

    self.assertFalse(client.transport.disconnecting)
    self.assertFalse(client.transport.aborted)
