'L{SSHCommandClientEndpoint} establishes an SSH connection, creates a
channel in it, runs a command in that channel, and uses the protocol\'s
C{makeConnection} to associate it with a protocol representing that
command\'s stdin and stdout.'

def test_makeConnection(self):

    self.realm.channelLookup['session'] = WorkingExecSession
    endpoint = self.create()
    factory = Factory()
    factory.protocol = Protocol
    connected = endpoint.connect(factory)
    (server, client, pump) = self.finishConnection()
    protocol = self.successResultOf(connected)
    self.assertIsNotNone(protocol.transport)
