MCPcopy Create free account
hub / github.com/psf/cachecontrol / setup_method

Method setup_method

tests/test_redirects.py:15–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14class TestPermanentRedirects:
15 def setup_method(self):
16 self.sess = CacheControl(requests.Session())
17
18 def test_redirect_response_is_cached(self, url):
19 self.sess.get(url + "permanent_redirect", allow_redirects=False)

Callers

nothing calls this directly

Calls 1

CacheControlFunction · 0.90

Tested by

no test coverage detected