def test_content_type
assert_equal('application/octet-stream', @resolver.content_type('/binary'))
assert_equal('application/octet-stream', @resolver.content_type('/index.html'))
assert_equal('application/octet-stream', @resolver.content_type('/index_ja.html'))
@resolver.set_content_type('.html', 'text/html')
assert_equal('application/octet-stream', @resolver.content_type('/binary'))
assert_equal('text/html', @resolver.content_type('/index.html'))
assert_equal('text/html', @resolver.content_type('/index_ja.html'))
@resolver.set_content_type('ja.html', 'text/html; charset=euc-jp')
assert_equal('application/octet-stream', @resolver.content_type('/binary'))
assert_equal('text/html', @resolver.content_type('/index.html'))
assert_equal('text/html', @resolver.content_type('/index_a.html'))
assert_equal('text/html; charset=euc-jp', @resolver.content_type('/index_ja.html'))
end