[Zodb-checkins] CVS: Zope3/src/zope/testing - functional.py:1.3

Marius Gedminas mgedmin@codeworks.lt
Mon, 14 Apr 2003 11:09:00 -0400


Update of /cvs-repository/Zope3/src/zope/testing
In directory cvs.zope.org:/tmp/cvs-serv2742

Modified Files:
	functional.py 
Log Message:
Line separators are \r\n in HTTP; fix response.getBody() for functional tests.

=== Zope3/src/zope/testing/functional.py 1.2 => 1.3 ===
--- Zope3/src/zope/testing/functional.py:1.2	Mon Apr 14 09:24:10 2003
+++ Zope3/src/zope/testing/functional.py	Mon Apr 14 11:08:59 2003
@@ -37,11 +37,11 @@
     def getBody(self):
         """Returns the response body"""
         output = self._outstream.getvalue()
-        idx = output.find('\n\n')
+        idx = output.find('\r\n\r\n')
         if idx == -1:
             return None
         else:
-            return output[idx+2:]
+            return output[idx+4:]
 
     def getPath(self):
         """Returns the path of the request"""