cherrypy.test.test_caching module

class cherrypy.test.test_caching.CacheTest(methodName='runTest')[source]

Bases: cherrypy.test.helper.CPWebCase

_assert_resp_len_and_enc_for_gzip(uri)[source]

Test that after querying gzipped content it’s remains valid in cache and available non-gzipped as well.

static setup_server()[source]
testCaching()[source]
testExpiresTool()[source]
testGzipStaticCache()[source]

Test that cache and gzip tools play well together when both enabled.

Ref GitHub issue #1190.

testLastModified()[source]
testVaryHeader()[source]
test_antistampede()[source]
test_cache_control()[source]