MCPcopy
hub / github.com/django/django / test_in

Method test_in

tests/cache/tests.py:167–171  ·  view source on GitHub ↗

The in operator doesn't ever return True for the dummy cache backend

(self)

Source from the content-addressed store, hash-verified

165 self.assertIs(cache.has_key("goodbye1"), False)
166
167 def test_in(self):
168 "The in operator doesn't ever return True for the dummy cache backend"
169 cache.set("hello2", "goodbye2")
170 self.assertNotIn("hello2", cache)
171 self.assertNotIn("goodbye2", cache)
172
173 def test_incr(self):
174 "Dummy cache values can't be incremented"

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected