def test_GET_if_modified_since_200_OK
mtime = File.mtime('test/index.html')
mtime -= 1
@request.method = 'GET'
@request.path = '/index.html'
@request.version = 'HTTP/1.1'
@request.set_header('If-Modified-Since', mtime.httpdate)
@local_doc.publish('', @request, @response, @logger)
assert_equal('/index.html', @messg_head.doc_path)
assert_match(@messg_head.local_path, %r"test/index\.html$")
assert_equal('HTTP/1.1', @messg_head.version)
assert_equal(200, @messg_head.status)
assert_equal('OK', @messg_head.reason)
assert_equal('text/html', @messg_head.header('Content-Type'))
assert_equal(HTML.length.to_s, @messg_head.header('Content-Length'))
assert_equal(HTML, @messg_body)
assert(@log_emerg.empty?)
assert(@log_alert.empty?)
assert(@log_crit.empty?)
assert(@log_err.empty?)
assert(@log_warning.empty?)
assert(@log_notice.empty?)
assert(@log_info.empty?)
assert_match(@log_debug, /enter document: \S+::LocalFileDocument/)
end