[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser/tests - test_directives.py:1.37

Philipp von Weitershausen philikon at philikon.de
Mon May 10 02:18:27 EDT 2004


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

Modified Files:
	test_directives.py 
Log Message:
Correct assertion. The test case is a placeless one so there could be lots
of providing views for any object providing Interface.


=== Zope3/src/zope/app/publisher/browser/tests/test_directives.py 1.36 => 1.37 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_directives.py:1.36	Wed May  5 08:14:42 2004
+++ Zope3/src/zope/app/publisher/browser/tests/test_directives.py	Mon May 10 02:18:25 2004
@@ -20,7 +20,7 @@
 import unittest
 from cStringIO import StringIO
 
-from zope.interface import Interface, implements, Interface
+from zope.interface import Interface, implements
 
 from zope.configuration.xmlconfig import xmlconfig, XMLConfig
 from zope.configuration.exceptions import ConfigurationError
@@ -88,7 +88,6 @@
 
 
 class C_w_implements(NCV):
-
     implements(Interface)
 
     def index(self):
@@ -953,9 +952,8 @@
         self.assert_(isinstance(v, V1))
 
     def testUnnamedViewThatProvidesAnInterface(self):
-
         request = TestRequest()
-        self.assertEqual(queryView(ob, '', request, None), None)
+        self.assertEqual(queryView(ob, '', request, None, providing=IV), None)
 
         xmlconfig(StringIO(template %
             """




More information about the Zope3-Checkins mailing list