Lines Matching refs:httplib2
2 import httplib2
13 http = httplib2.Http(cache=tests.get_cache_path())
25 http = httplib2.Http(cache=tests.get_cache_path())
39 http = httplib2.Http()
71 http = httplib2.Http(cache=tests.get_cache_path())
98 http = httplib2.Http(cache=tests.get_cache_path())
137 http = httplib2.Http(cache=tests.get_cache_path())
155 http = httplib2.Http(cache=tests.get_cache_path())
180 http = httplib2.Http(cache=tests.get_cache_path())
201 http = httplib2.Http(cache=tests.get_cache_path())
218 http = httplib2.Http(cache=tests.get_cache_path())
236 http = httplib2.Http(cache=tests.get_cache_path())
261 http = httplib2.Http(cache=tests.get_cache_path())
299 http = httplib2.Http(cache=tests.get_cache_path())
315 http = httplib2.Http(cache=tests.get_cache_path())
330 http = httplib2.Http(cache=tests.get_cache_path())
363 assert httplib2._parse_cache_control(header) == expected
368 h = httplib2._normalize_headers({"Cache-Control": "no-cache", "Other": "Stuff"})
427 assert httplib2._entry_disposition(response, request) == expected
435 assert httplib2._entry_disposition(response_headers, {}) == "FRESH"
438 assert httplib2._entry_disposition(response_headers, {}) == "STALE"
447 assert httplib2._entry_disposition(response_headers, {}) == "FRESH"
449 assert httplib2._entry_disposition(response_headers, {}) == "STALE"