1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Make test "test_cookies" more mean and helpful

This commit is contained in:
Sebastian Pipping
2023-05-16 16:40:11 +02:00
parent 3547ed966f
commit 384d47714e

View File

@@ -64,9 +64,10 @@ def test_cookies(tmpdir, httpbin):
with vcr.use_cassette(testfile):
s = requests.Session()
s.get(httpbin.url + "/cookies/set?k1=v1&k2=v2")
assert s.cookies.keys() == ["k1", "k2"]
r2 = s.get(httpbin.url + "/cookies")
assert len(r2.json()["cookies"]) == 2
assert sorted(r2.json()["cookies"].keys()) == ["k1", "k2"]
def test_amazon_doctype(tmpdir):