Commit 3be68b1d authored by Stefan H. Holek's avatar Stefan H. Holek

Made functional doctests set the Www-Authenticate header.

parent 9d7a7ebe
...@@ -5,7 +5,8 @@ Unreleased ...@@ -5,7 +5,8 @@ Unreleased
than GET or HEAD while omitting the stdin argument. than GET or HEAD while omitting the stdin argument.
- installProduct() now becomes a noop if ZopeTestCase did not apply its - installProduct() now becomes a noop if ZopeTestCase did not apply its
patches. patches.
- Made the functional doc tests set the cookie related headers. - Made the functional doctests set the cookie related headers.
- Made functional doctests set the Www-Authenticate header.
- Made sure logging is configured. Read $INSTANCE_HOME/log.ini if it exists. - Made sure logging is configured. Read $INSTANCE_HOME/log.ini if it exists.
0.9.8 (Zope 2.8 edition) 0.9.8 (Zope 2.8 edition)
......
...@@ -124,6 +124,7 @@ Test Unauthorized ...@@ -124,6 +124,7 @@ Test Unauthorized
... """, handle_errors=True) ... """, handle_errors=True)
HTTP/1.1 401 Unauthorized HTTP/1.1 401 Unauthorized
... ...
Www-Authenticate: basic realm=...
Test Basic Authentication Test Basic Authentication
......
...@@ -183,6 +183,7 @@ def http(request_string, handle_errors=True): ...@@ -183,6 +183,7 @@ def http(request_string, handle_errors=True):
header_output.setResponseStatus(response.getStatus(), response.errmsg) header_output.setResponseStatus(response.getStatus(), response.errmsg)
header_output.setResponseHeaders(response.headers) header_output.setResponseHeaders(response.headers)
header_output.appendResponseHeaders(response._cookie_list()) header_output.appendResponseHeaders(response._cookie_list())
header_output.appendResponseHeaders(response.accumulated_headers.splitlines())
# Restore previous security manager, which may have been changed # Restore previous security manager, which may have been changed
# by calling the publish method above # by calling the publish method above
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment