MCPcopy
hub / github.com/django/django / test_touch

Method test_touch

tests/cache/tests.py:193–195  ·  view source on GitHub ↗

Dummy cache can't do touch().

(self)

Source from the content-addressed store, hash-verified

191 cache.decr("does_not_exist", -1)
192
193 def test_touch(self):
194 """Dummy cache can't do touch()."""
195 self.assertIs(cache.touch("whatever"), False)
196
197 def test_data_types(self):
198 "All data types are ignored equally by the dummy cache"

Callers

nothing calls this directly

Calls 1

touchMethod · 0.45

Tested by

no test coverage detected