[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/tests - testPublisher.py:1.1.2.4

Martijn Pieters mj@zope.com
Tue, 27 Nov 2001 17:16:25 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv16249/lib/python/Zope/Publisher/tests

Modified Files:
      Tag: Zope-3x-branch
	testPublisher.py 
Log Message:
Fix typos in test suite, and fix a small bug exposed by tests.


=== Zope3/lib/python/Zope/Publisher/tests/testPublisher.py 1.1.2.3 => 1.1.2.4 ===
 
 class PublisherTests(unittest.TestCase):
-
     def setUp(self):
         class AppRoot:
             " "
@@ -54,11 +53,11 @@
         return request.response.outstream.getvalue()
 
     def testImplementsIPublication(self):
-        self.failUnless(IPublication.isImplementedBy(DefaultPublication(self.app))
+        self.failUnless(IPublication.isImplementedBy(DefaultPublication(self.app)))
 
     def testInterfacesVerify(self):
-        for interface in instancesOfObjectImplements(Presentation):
-            verify(interface, Presentation)
+        for interface in instancesOfObjectImplements(DefaultPublication):
+            verify(interface, DefaultPublication)
 
     def testTraversalToItem(self):
         res = self._publisherResults('/folder/item')