MCPcopy
hub / github.com/psf/requests / test_cookie_as_dict_keys

Method test_cookie_as_dict_keys

tests/test_requests.py:1329–1343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1327 assert d3["some_cookie1"] == "some_value1"
1328
1329 def test_cookie_as_dict_keys(self):
1330 key = "some_cookie"
1331 value = "some_value"
1332
1333 key1 = "some_cookie1"
1334 value1 = "some_value1"
1335
1336 jar = requests.cookies.RequestsCookieJar()
1337 jar.set(key, value)
1338 jar.set(key1, value1)
1339
1340 keys = jar.keys()
1341 assert keys == list(keys)
1342 # make sure one can use keys multiple times
1343 assert list(keys) == list(keys)
1344
1345 def test_cookie_as_dict_values(self):
1346 key = "some_cookie"

Callers

nothing calls this directly

Calls 2

setMethod · 0.95
keysMethod · 0.95

Tested by

no test coverage detected