[Zope3-checkins] SVN: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/ Updated to reflect new request construction

Jim Fulton jim at zope.com
Fri Sep 2 17:16:28 EDT 2005


Log message for revision 38265:
  Updated to reflect new request construction
  

Changed:
  U   Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/exception/tests/test_methodnotallowed.py
  U   Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/tests/test_put.py

-=-
Modified: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/exception/tests/test_methodnotallowed.py
===================================================================
--- Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/exception/tests/test_methodnotallowed.py	2005-09-02 21:10:40 UTC (rev 38264)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/exception/tests/test_methodnotallowed.py	2005-09-02 21:16:28 UTC (rev 38265)
@@ -65,8 +65,7 @@
         from zope.publisher.http import HTTPRequest
 
         context = C()
-        request = HTTPRequest(StringIO('PUT /bla/bla HTTP/1.1\n\n'),
-                              StringIO(), {})
+        request = HTTPRequest(StringIO('PUT /bla/bla HTTP/1.1\n\n'), {})
         error = MethodNotAllowed(context, request)
         view = MethodNotAllowedView(error, request)
 

Modified: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/tests/test_put.py
===================================================================
--- Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/tests/test_put.py	2005-09-02 21:10:40 UTC (rev 38264)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/http/tests/test_put.py	2005-09-02 21:16:28 UTC (rev 38265)
@@ -52,7 +52,7 @@
     def test(self):
         container = Container()
         content = "some content\n for testing"
-        request = TestRequest(StringIO(content), StringIO(),
+        request = TestRequest(StringIO(content), 
                               {'CONTENT_TYPE': 'test/foo',
                                'CONTENT_LENGTH': str(len(content)),
                                })
@@ -73,7 +73,7 @@
     def test_bad_content_header(self):
         container = Container()
         content = "some content\n for testing"
-        request = TestRequest(StringIO(content), StringIO(),
+        request = TestRequest(StringIO(content), 
                               {'CONTENT_TYPE': 'test/foo',
                                'CONTENT_LENGTH': str(len(content)),
                                'HTTP_CONTENT_FOO': 'Bar',
@@ -92,7 +92,7 @@
     def test(self):
         file = File("thefile", "text/x", "initial content")
         content = "some content\n for testing"
-        request = TestRequest(StringIO(content), StringIO(),
+        request = TestRequest(StringIO(content), 
                               {'CONTENT_TYPE': 'test/foo',
                                'CONTENT_LENGTH': str(len(content)),
                                })
@@ -104,7 +104,7 @@
     def test_bad_content_header(self):
         file = File("thefile", "text/x", "initial content")
         content = "some content\n for testing"
-        request = TestRequest(StringIO(content), StringIO(),
+        request = TestRequest(StringIO(content), 
                               {'CONTENT_TYPE': 'test/foo',
                                'CONTENT_LENGTH': str(len(content)),
                                'HTTP_CONTENT_FOO': 'Bar',



More information about the Zope3-Checkins mailing list