[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/HTTP/tests - __init__.py:1.1.2.2 testHTTPServer.py:1.1.2.3 testPublisherServer.py:1.1.2.2
Shane Hathaway
shane@cvs.zope.org
Thu, 4 Apr 2002 13:46:27 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server/HTTP/tests
In directory cvs.zope.org:/tmp/cvs-serv17993/HTTP/tests
Modified Files:
Tag: Zope3-Server-Branch
__init__.py testHTTPServer.py testPublisherServer.py
Log Message:
Just fixed line endings. No carriage returns.
=== Zope3/lib/python/Zope/Server/HTTP/tests/__init__.py 1.1.2.1 => 1.1.2.2 ===
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
=== Zope3/lib/python/Zope/Server/HTTP/tests/testHTTPServer.py 1.1.2.2 => 1.1.2.3 ===
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""
@@ -195,7 +195,7 @@
"Content-Length: %d\n"
"\n"
"%s") % (len(data), data)
-
+
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((LOCALHOST, self.port))
sock.send(s)
@@ -264,7 +264,7 @@
control_line="20;\r\n" # 20 hex = 32 dec
s = 'This string has 32 characters.\r\n'
expect = s * 12
-
+
h = HTTPConnection(LOCALHOST, self.port)
h.putrequest('GET', '/')
h.putheader('Accept', 'text/plain')
=== Zope3/lib/python/Zope/Server/HTTP/tests/testPublisherServer.py 1.1.2.1 => 1.1.2.2 ===
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
##############################################################################
"""
@@ -101,7 +101,7 @@
td.setThreadCount(4)
# Bind to any port on localhost.
- self.server = PublisherHTTPServer(request_factory, 'Browser',
+ self.server = PublisherHTTPServer(request_factory, 'Browser',
LOCALHOST, 0, task_dispatcher=td)
self.port = self.server.socket.getsockname()[1]
self.run_loop = 1