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

Method test_lock_class

tests/test_storage_filecache.py:102–106  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

100 cache.close()
101
102 def test_lock_class(self, tmpdir):
103 lock_class = object()
104 cache = self.FileCacheClass(str(tmpdir), lock_class=lock_class)
105 assert cache.lock_class is lock_class
106 cache.close()
107
108 def test_filecache_with_delete_request(self, tmpdir, sess):
109 # verifies issue #155

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected