[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_directives.py:1.30

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 20 12:10:58 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv23031/src/zope/app/component/tests

Modified Files:
	test_directives.py 
Log Message:


Removed test for creating a view in defaultView directive.




=== Zope3/src/zope/app/component/tests/test_directives.py 1.29 => 1.30 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.29	Thu Mar 18 07:19:20 2004
+++ Zope3/src/zope/app/component/tests/test_directives.py	Sat Mar 20 12:10:57 2004
@@ -675,25 +675,6 @@
         xmlconfig(StringIO(template % (
             """
             <defaultView name="test"
-                  factory="zope.app.component.tests.views.V1"
-                  for="zope.app.component.tests.views.IC"
-                  type="zope.app.component.tests.views.IV"/>
-            """
-            )))
-
-        self.assertEqual(
-            zapi.queryView(ob, 'test', Request(IV), None).__class__,
-            V1)
-        self.assertEqual(zapi.getDefaultViewName(ob, Request(IV)), 'test')
-
-    def testDefaultViewOnly(self):
-
-        ob = Ob()
-        self.assertEqual(zapi.queryView(ob, 'test', Request(IV), None), None)
-
-        xmlconfig(StringIO(template % (
-            """
-            <defaultView name="test"
                   for="zope.app.component.tests.views.IC"
                   type="zope.app.component.tests.views.IV"/>
             """




More information about the Zope3-Checkins mailing list