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

Method test_incr_version

tests/cache/tests.py:263–269  ·  tests/cache/tests.py::DummyCacheTests.test_incr_version

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 class="st">"Dummy cache versions can&class="cm">#x27;t be incremented"
265 cache.set(class="st">"answer", 42)
266 with self.assertRaises(ValueError):
267 cache.incr_version(class="st">"answer")
268 with self.assertRaises(ValueError):
269 cache.incr_version(class="st">"does_not_exist")
270
271 def test_decr_version(self):
272 class="st">"Dummy cache versions can&class="cm">#x27;t be decremented"

Callers

nothing calls this directly

Calls 2

incr_versionMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected