Lines Matching refs:Cache
60 from googleapiclient.discovery_cache.base import Cache
567 # Make sure the contents are returned from the cache.
583 class DictCache(Cache):
596 cache = mock.Mock(wraps=DictCache())
598 return_value=cache):
603 # cache.get is called once
605 cache.get.assert_called_once_with(url)
607 # cache.set is called once
610 cache.set.assert_called_once_with(url, content)
612 # Make sure there is a cache entry for the plus v1 discovery doc.
613 self.assertTrue(cache.contains(url))
615 # Make sure the contents are returned from the cache.
621 # cache.get is called twice
622 cache.get.assert_has_calls([mock.call(url), mock.call(url)])
625 cache.set.assert_called_once_with(url, content)