def test_allow
@access.add_allow_name('localhost')
@request.set_client('localhost', '127.0.0.1', 31415)
@request.method = 'GET'
@request.path = '/'
@request.version = 'HTTP/1.1'
@doc.publish('', @request, @response, @logger)
assert_equal(1, @publish_call)
assert_equal('', @publish_script_name)
assert_equal('/', @publish_request_path)
assert_equal('HTTP/1.1', @messg_head.version)
assert_equal(200, @messg_head.status)
assert_equal('OK', @messg_head.reason)
assert_equal('text/plain', @messg_head.header('Content-Type'))
assert_equal('foo', @messg_body)
end