def test_update(self): from zope.app.cache.ram import RAMCache c = RAMCache() c.update(1, 2, 3) s = c._getStorage() self.assertEqual(s.maxEntries, 1, "maxEntries not set") self.assertEqual(s.maxAge, 2, "maxAge not set") self.assertEqual(s.cleanupInterval, 3, "cleanupInterval not set")