Log message for revision 66138: Made functional doctests set the Www-Authenticate header.
Changed: U Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt U Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt U Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py -=- Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt =================================================================== --- Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt 2006-03-23 18:34:22 UTC (rev 66137) +++ Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt 2006-03-23 18:35:00 UTC (rev 66138) @@ -5,7 +5,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/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt =================================================================== --- Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt 2006-03-23 18:34:22 UTC (rev 66137) +++ Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt 2006-03-23 18:35:00 UTC (rev 66138) @@ -124,6 +124,7 @@ ... """, handle_errors=True) HTTP/1.1 401 Unauthorized ... + Www-Authenticate: basic realm=... Test Basic Authentication Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py =================================================================== --- Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py 2006-03-23 18:34:22 UTC (rev 66137) +++ Zope/trunk/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py 2006-03-23 18:35:00 UTC (rev 66138) @@ -183,6 +183,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