[Checkins] SVN: zope.app.publication/trunk/src/zope/app/publication/ HTTP request should not have leading whitespace.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Sun Mar 13 16:06:26 EDT 2011


Log message for revision 120893:
  HTTP request should not have leading whitespace.

Changed:
  U   zope.app.publication/trunk/src/zope/app/publication/httpfactory.txt
  U   zope.app.publication/trunk/src/zope/app/publication/methodnotallowed.txt
  U   zope.app.publication/trunk/src/zope/app/publication/notfound.txt

-=-
Modified: zope.app.publication/trunk/src/zope/app/publication/httpfactory.txt
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/httpfactory.txt	2011-03-13 19:22:48 UTC (rev 120892)
+++ zope.app.publication/trunk/src/zope/app/publication/httpfactory.txt	2011-03-13 20:06:26 UTC (rev 120893)
@@ -12,21 +12,21 @@
 
   >>> from zope.app.wsgi.testlayer import http
 
-  >>> print http(r"""
+  >>> print http("""\
   ... GET / HTTP/1.1
   ... """)
   HTTP/1.0 200 OK
   Content-Length: ...
   Content-Type: text/html;charset=utf-8
   ...
-  >>> print http(r"""
+  >>> print http("""\
   ... POST / HTTP/1.1
   ... """)
   HTTP/1.0 200 OK
   Content-Length: ...
   Content-Type: text/html;charset=utf-8
   ...
-  >>> print http(r"""
+  >>> print http("""\
   ... HEAD / HTTP/1.1
   ... """)
   HTTP/1.0 200 OK
@@ -36,7 +36,7 @@
 
 A text/xml POST request, wich is an xml-rpc call
 
-  >>> print http(r"""
+  >>> print http("""\
   ... POST /RPC2 HTTP/1.0
   ... Content-Type: text/xml
   ... """)
@@ -50,7 +50,7 @@
 
 TODO need to create a real SOAP exchange test here
 
-  >>> print http(r"""
+  >>> print http("""\
   ... POST /RPC2 HTTP/1.0
   ... Content-Type: text/xml
   ... HTTP_SOAPACTION: soap#action
@@ -64,7 +64,7 @@
 
 TODO need more testing here
 
-  >>> print http(r"""
+  >>> print http("""\
   ... POST /BUBA HTTP/1.0
   ... Content-Type: text/topnotch
   ... """)

Modified: zope.app.publication/trunk/src/zope/app/publication/methodnotallowed.txt
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/methodnotallowed.txt	2011-03-13 19:22:48 UTC (rev 120892)
+++ zope.app.publication/trunk/src/zope/app/publication/methodnotallowed.txt	2011-03-13 20:06:26 UTC (rev 120893)
@@ -6,7 +6,7 @@
 
   >>> from zope.app.wsgi.testlayer import http
 
-  >>> print http(r"""
+  >>> print http("""
   ... FROG / HTTP/1.1
   ... """)
   HTTP/1.0 405 Method Not Allowed
@@ -14,7 +14,7 @@
   Allow: DELETE, OPTIONS, PUT
   ...
 
-  >>> print http(r"""
+  >>> print http("""\
   ... DELETE / HTTP/1.1
   ... """)
   HTTP/1.0 405 Method Not Allowed
@@ -22,7 +22,7 @@
 
 Trying to PUT on an object which does not support PUT leads to 405:
 
-  >>> print http(r"""
+  >>> print http("""\
   ... PUT / HTTP/1.1
   ... Authorization: Basic mgr:mgrpw
   ... """)
@@ -32,7 +32,7 @@
 Trying to PUT a not existing object on a container which does not support
 PUT leads to 405:
 
-  >>> print http(r"""
+  >>> print http("""\
   ... PUT /asdf HTTP/1.1
   ... Authorization: Basic mgr:mgrpw
   ... """)
@@ -41,7 +41,7 @@
 
 When ``handle_errors`` is set to ``False`` a traceback is displayed:
 
-  >>> print http(r"""
+  >>> print http("""\
   ... PUT / HTTP/1.1
   ... Authorization: Basic mgr:mgrpw
   ... """, handle_errors=False)

Modified: zope.app.publication/trunk/src/zope/app/publication/notfound.txt
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/notfound.txt	2011-03-13 19:22:48 UTC (rev 120892)
+++ zope.app.publication/trunk/src/zope/app/publication/notfound.txt	2011-03-13 20:06:26 UTC (rev 120893)
@@ -5,7 +5,7 @@
 to an object that doesn't exist, as in:
 
   >>> from zope.app.wsgi.testlayer import http
-  >>> print http(r"""
+  >>> print http("""\
   ... GET /eek HTTP/1.1
   ... """)
   HTTP/1.0 404 Not Found



More information about the checkins mailing list