class Net::SSH::Test::Script

def opens_channel(confirm = true)

to script additional channel operations.
A new Net::SSH::Test::Channel instance is returned, which can be used

adding a remote packet confirming the new channel.
channel open request, and if +confirm+ is true (the default), also
Scripts the opening of a channel by adding a local packet sending the
def opens_channel(confirm = true)
  channel = Channel.new(self)
  channel.remote_id = 5555
  events << LocalPacket.new(:channel_open) { |p| channel.local_id = p[:remote_id] }
  events << RemotePacket.new(:channel_open_confirmation, channel.local_id, channel.remote_id, 0x20000, 0x10000) if confirm
  channel
end