MCPcopy
hub / github.com/pimutils/vdirsyncer / get

Function get

tests/storage/test_http.py:36–45  ·  view source on GitHub ↗
(self, method, url, *a, **kw)

Source from the content-addressed store, hash-verified

34 ] * 2
35
36 def get(self, method, url, *a, **kw):
37 assert method == 'GET'
38 assert url == collection_url
39 r = Response()
40 r.status_code = 200
41 assert responses
42 r._content = responses.pop().encode('utf-8')
43 r.headers['Content-Type'] = 'text/calendar'
44 r.encoding = 'ISO-8859-1'
45 return r
46
47 monkeypatch.setattr('requests.sessions.Session.request', get)
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected