()
| 91 | |
| 92 | |
| 93 | def test_method_not_allowed_methods(): |
| 94 | exc = exceptions.MethodNotAllowed(["GET", "HEAD", "POST"]) |
| 95 | h = dict(exc.get_headers({})) |
| 96 | assert h["Allow"] == "GET, HEAD, POST" |
| 97 | assert "The method is not allowed" in exc.get_description() |
| 98 | |
| 99 | |
| 100 | def test_unauthorized_www_authenticate(): |
nothing calls this directly
no test coverage detected