MCPcopy
hub / github.com/django/django / test_incr_version

Method test_incr_version

tests/cache/tests.py:263–269  ·  view source on GitHub ↗

Dummy cache versions can't be incremented

(self)

Source from the content-addressed store, hash-verified

261 cache.clear()
262
263 def test_incr_version(self):
264 "Dummy cache versions can't be incremented"
265 cache.set("answer", 42)
266 with self.assertRaises(ValueError):
267 cache.incr_version("answer")
268 with self.assertRaises(ValueError):
269 cache.incr_version("does_not_exist")
270
271 def test_decr_version(self):
272 "Dummy cache versions can't be decremented"

Callers

nothing calls this directly

Calls 2

incr_versionMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected