cherrypy.test.test_static module

class cherrypy.test.test_static.StaticTest(methodName='runTest')[source]

Bases: cherrypy.test.helper.CPWebCase

files_to_remove = []
static setup_server()[source]
classmethod teardown_class()[source]
test_755_vhost()[source]
test_config_errors()[source]
test_error_page_with_serve_file()[source]
test_fallthrough()[source]
test_file_stream()[source]
test_file_stream_deadlock()[source]
test_index()[source]
test_modif()[source]
test_null_bytes()[source]
test_security()[source]
test_serve_bytesio()[source]
test_serve_fileobj()[source]
test_static()[source]
test_static_longpath()[source]

Test serving of a file in subdir of a Windows long-path staticdir.

test_unicode()[source]
classmethod unicode_file()[source]
cherrypy.test.test_static._check_unicode_filesystem(tmpdir)[source]
cherrypy.test.test_static.ensure_unicode_filesystem()[source]

TODO: replace with simply pytest fixtures once webtest.TestCase no longer implies unittest.

cherrypy.test.test_static.error_page_404(status, message, traceback, version)[source]
cherrypy.test.test_static.unicode_filesystem(tmpdir)[source]