[CalendarServer-changes] [8275] CalendarServer/trunk/twext/web2/test/test_server.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 11 09:04:10 PST 2011
Revision: 8275
http://trac.macosforge.org/projects/calendarserver/changeset/8275
Author: cdaboo at apple.com
Date: 2011-11-11 09:04:09 -0800 (Fri, 11 Nov 2011)
Log Message:
-----------
Docstrings.
Modified Paths:
--------------
CalendarServer/trunk/twext/web2/test/test_server.py
Modified: CalendarServer/trunk/twext/web2/test/test_server.py
===================================================================
--- CalendarServer/trunk/twext/web2/test/test_server.py 2011-11-11 00:44:52 UTC (rev 8274)
+++ CalendarServer/trunk/twext/web2/test/test_server.py 2011-11-11 17:04:09 UTC (rev 8275)
@@ -352,6 +352,9 @@
(200, {}, "prepath:[] postpath:['consumed', 'path', 'segments']"))
def test_redirectResource(self):
+ """
+ Make sure a redirect response has the correct status and Location header.
+ """
redirectResource = resource.RedirectResource(scheme='https',
host='localhost',
port=443,
@@ -363,6 +366,10 @@
(301, {'location': 'https://localhost/foo?bar=baz'}, None))
def test_redirectResourceWithSchemeRemapping(self):
+ """
+ Make sure a redirect response has the correct status and Location header, when
+ SSL is on, and the client request uses scheme http with the SSL port.
+ """
def chanrequest2(root, uri, length, headers, method, version, prepath, content):
site = server.Site(root)
@@ -380,6 +387,10 @@
(301, {'location': 'https://localhost:8443/foo'}, None))
def test_redirectResourceWithoutSchemeRemapping(self):
+ """
+ Make sure a redirect response has the correct status and Location header, when
+ SSL is on, and the client request uses scheme http with the non-SSL port.
+ """
def chanrequest2(root, uri, length, headers, method, version, prepath, content):
site = server.Site(root)
@@ -397,6 +408,10 @@
(301, {'location': 'http://localhost:8008/foo'}, None))
def test_redirectResourceWithoutSSLSchemeRemapping(self):
+ """
+ Make sure a redirect response has the correct status and Location header, when
+ SSL is off, and the client request uses scheme http with the SSL port.
+ """
def chanrequest2(root, uri, length, headers, method, version, prepath, content):
site = server.Site(root)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111111/9c4188c6/attachment.html>
More information about the calendarserver-changes
mailing list