[Zope-Checkins]
SVN: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/
Made functional doctests set the Www-Authenticate header.
Stefan H. Holek
stefan at epy.co.at
Thu Mar 23 13:34:23 EST 2006
Log message for revision 66137:
Made functional doctests set the Www-Authenticate header.
Changed:
U Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
U Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt
U Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
-=-
Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt 2006-03-23 18:33:53 UTC (rev 66136)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt 2006-03-23 18:34:22 UTC (rev 66137)
@@ -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/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt 2006-03-23 18:33:53 UTC (rev 66136)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt 2006-03-23 18:34:22 UTC (rev 66137)
@@ -124,6 +124,7 @@
... """, handle_errors=True)
HTTP/1.1 401 Unauthorized
...
+ Www-Authenticate: basic realm=...
Test Basic Authentication
Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py 2006-03-23 18:33:53 UTC (rev 66136)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py 2006-03-23 18:34:22 UTC (rev 66137)
@@ -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
More information about the Zope-Checkins
mailing list