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

Method test_cookie_as_dict_items

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

Source from the content-addressed store, hash-verified

1359 assert list(values) == list(values)
1360
1361 def test_cookie_as_dict_items(self):
1362 key = "some_cookie"
1363 value = "some_value"
1364
1365 key1 = "some_cookie1"
1366 value1 = "some_value1"
1367
1368 jar = requests.cookies.RequestsCookieJar()
1369 jar.set(key, value)
1370 jar.set(key1, value1)
1371
1372 items = jar.items()
1373 assert items == list(items)
1374 # make sure one can use items multiple times
1375 assert list(items) == list(items)
1376
1377 def test_cookie_duplicate_names_different_domains(self):
1378 key = "some_cookie"

Callers

nothing calls this directly

Calls 2

setMethod · 0.95
itemsMethod · 0.95

Tested by

no test coverage detected