MCPcopy Create free account
hub / github.com/pallets/flask / expect

Function expect

tests/test_basic.py:554–562  ·  view source on GitHub ↗
(path, header_value="Cookie")

Source from the content-addressed store, hash-verified

552 return ""
553
554 def expect(path, header_value="Cookie"):
555 rv = client.get(path)
556
557 if header_value:
558 # The 'Vary' key should exist in the headers only once.
559 assert len(rv.headers.get_all("Vary")) == 1
560 assert rv.headers["Vary"] == header_value
561 else:
562 assert "Vary" not in rv.headers
563
564 expect("/set")
565 expect("/get")

Callers 1

test_session_vary_cookieFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected