()
| 698 | |
| 699 | |
| 700 | def test_authenticate_quoted_qop(): |
| 701 | # Example taken from https://github.com/pallets/werkzeug/issues/633 |
| 702 | resp = wrappers.Response() |
| 703 | resp.www_authenticate = WWWAuthenticate( |
| 704 | "digest", {"realm": "REALM", "nonce": "NONCE", "qop": "auth, auth-int"} |
| 705 | ) |
| 706 | |
| 707 | actual = resp.headers["WWW-Authenticate"] |
| 708 | expected = 'Digest realm="REALM", nonce="NONCE", qop="auth, auth-int"' |
| 709 | assert actual == expected |
| 710 | |
| 711 | resp.www_authenticate.parameters["qop"] = "auth" |
| 712 | actual = resp.headers["WWW-Authenticate"] |
| 713 | expected = 'Digest realm="REALM", nonce="NONCE", qop="auth"' |
| 714 | assert actual == expected |
| 715 | |
| 716 | |
| 717 | def test_response_stream(): |
nothing calls this directly
no test coverage detected