MCPcopy Index your code
hub / github.com/clips/pattern / test_cache

Method test_cache

test/test_web.py:22–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 pass
21
22 def test_cache(self):
23 # Assert cache unicode.
24 k, v = "test", u"ünîcødé"
25 web.cache[k] = v
26 self.assertTrue(isinstance(web.cache[k], unicode))
27 self.assertEqual(web.cache[k], v)
28 self.assertEqual(web.cache.age(k), 0)
29 del web.cache[k]
30 print "pattern.web.Cache"
31
32#---------------------------------------------------------------------------------------------------
33

Callers

nothing calls this directly

Calls 1

ageMethod · 0.80

Tested by

no test coverage detected