# File lib/net/ssh/test.rb, line 82
    def assert_scripted
      raise "there is no script to be processed" if socket.script.events.empty?
      yield
      assert socket.script.events.empty?, "there should not be any remaining scripted events, but there are still #{socket.script.events.length} pending"
    end