[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests - test_xmlrpcmethodpublisher.py:1.3

Stephan Richter srichter@cbu.edu
Tue, 14 Jan 2003 15:33:43 -0500


Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv28930/src/zope/publisher/tests

Modified Files:
	test_xmlrpcmethodpublisher.py 
Log Message:
Forgot to fix the tests as well. Oops.


=== Zope3/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py 1.2 => 1.3 ===
--- Zope3/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py:1.2	Wed Dec 25 09:15:19 2002
+++ Zope3/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py	Tue Jan 14 15:33:40 2003
@@ -13,12 +13,15 @@
 ##############################################################################
 import unittest, sys
 
-from zope.publisher.xmlrpc import MethodPublisher
+from zope.publisher.xmlrpc import MethodPublisher, TestRequest
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublisher
 
 from zope.interface.verify import verifyClass
 from zope.interface.implements import instancesOfObjectImplements
 
+class ContentStub:
+    pass
+
 class Presentation(MethodPublisher):
     index = 'index'
     action = 'action'
@@ -27,7 +30,7 @@
 
 class TestMethodPublisher(unittest.TestCase):
     def setUp(self):
-        self.pres = Presentation()
+        self.pres = Presentation(ContentStub(), TestRequest())
 
     def testImplementsIXMLRPCPublisher(self):
         self.failUnless(IXMLRPCPublisher.isImplementedBy(self.pres))