Home
last modified time | relevance | path

Searched refs:cache_mock (Results 1 – 3 of 3) sorted by relevance

/external/python/oauth2client/tests/
Dtest_clientsecrets.py245 self.cache_mock = self.CacheMock()
249 VALID_FILE, cache=self.cache_mock)
253 cached = self.cache_mock.cache[VALID_FILE]
257 ns = self.cache_mock.last_set_ns
260 self.assertEqual(ns, self.cache_mock.last_get_ns)
263 self.cache_mock.cache[NONEXISTENT_FILE] = {'web': 'secret info'}
266 NONEXISTENT_FILE, cache=self.cache_mock)
270 self.assertEqual(None, self.cache_mock.last_set_ns)
274 clientsecrets.loadfile(INVALID_FILE, cache=self.cache_mock)
Dtest_client.py75 def load_and_cache(existing_file, fakename, cache_mock): argument
77 cache_mock.cache[fakename] = {client_type: client_info}
2068 cache_mock = CacheMock()
2069 load_and_cache('client_secrets.json', 'some_secrets', cache_mock)
2072 'some_secrets', '', redirect_uri='oob', cache=cache_mock)
2220 cache_mock = CacheMock()
2221 load_and_cache('client_secrets.json', 'some_secrets', cache_mock)
2225 self.code, http=http, cache=cache_mock)
/external/python/oauth2client/tests/contrib/
Dtest_appengine.py56 def load_and_cache(existing_file, fakename, cache_mock): argument
58 cache_mock.cache[fakename] = {client_type: client_info}
918 cache_mock = CacheMock()
919 load_and_cache('client_secrets.json', 'secret', cache_mock)
922 'secret', '', cache=cache_mock)