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

Method test_www_authenticate_eq

tests/test_http.py:293–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 assert a.token == token
292
293 def test_www_authenticate_eq(self):
294 basic1 = WWWAuthenticate.from_header("Basic realm=abc")
295 basic2 = WWWAuthenticate("basic", {"realm": "abc"})
296 assert basic1 == basic2
297 token1 = WWWAuthenticate.from_header("Token abc")
298 token2 = WWWAuthenticate("token", token="abc")
299 assert token1 == token2
300 assert basic1 != token1
301 assert basic1 != object()
302
303 def test_etags(self):
304 assert http.quote_etag("foo") == '"foo"'

Callers

nothing calls this directly

Calls 2

WWWAuthenticateClass · 0.90
from_headerMethod · 0.45

Tested by

no test coverage detected