Test::Unit::TestCase
# File lib/rex/proto/http/header.rb.ut.rb, line 22 def test_from_s h = Klass.new h.from_s( "POST /foo HTTP/1.0\r\n" + "Lucifer: Beast\r\n" + "HoHo: Satan\r\n" + "Eat: Babies\r\n" + "\r\n") assert_equal('Babies', h['Eat'], 'header') assert_equal('Satan', h['HoHo'], 'header') assert_equal('Satan', h['hOhO'], 'header') assert_equal("POST /foo HTTP/1.0\r\n", h.cmd_string, 'cmd_string') end
Generated with the Darkfish Rdoc Generator 2.