Log message for revision 66136: Made functional doctests set the Www-Authenticate header.
Changed: U Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt U Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt U Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt =================================================================== --- Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt 2006-03-23 15:32:51 UTC (rev 66135) +++ Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt 2006-03-23 18:33:53 UTC (rev 66136) @@ -4,7 +4,8 @@ than GET or HEAD while omitting the stdin argument. - installProduct() now becomes a noop if ZopeTestCase did not apply its 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. 0.9.8 (Zope 2.8 edition) Modified: Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt =================================================================== --- Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt 2006-03-23 15:32:51 UTC (rev 66135) +++ Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt 2006-03-23 18:33:53 UTC (rev 66136) @@ -124,6 +124,7 @@ ... """, handle_errors=True) HTTP/1.1 401 Unauthorized ... + Www-Authenticate: basic realm=... Test Basic Authentication Modified: Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py =================================================================== --- Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py 2006-03-23 15:32:51 UTC (rev 66135) +++ Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py 2006-03-23 18:33:53 UTC (rev 66136) @@ -182,6 +182,7 @@ header_output.setResponseStatus(response.getStatus(), response.errmsg) header_output.setResponseHeaders(response.headers) header_output.appendResponseHeaders(response._cookie_list()) + header_output.appendResponseHeaders(response.accumulated_headers.splitlines()) # Restore previous security manager, which may have been changed # by calling the publish method above _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins