MCPcopy
hub / github.com/pallets/werkzeug / test_auth_object

Function test_auth_object

tests/test_test.py:310–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308
309
310def test_auth_object():
311 builder = EnvironBuilder(
312 auth=Authorization("digest", {"username": "u", "password": "p"})
313 )
314 request = builder.get_request()
315 assert request.headers["Authorization"].startswith("Digest ")
316
317
318def test_environ_builder_stream_switch():

Callers

nothing calls this directly

Calls 3

get_requestMethod · 0.95
EnvironBuilderClass · 0.90
AuthorizationClass · 0.90

Tested by

no test coverage detected