[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Publisher/XMLRPC/tests - testDirectives.py:1.4

Stephan Richter srichter@cbu.edu
Sat, 29 Jun 2002 11:42:13 -0400


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

Modified Files:
	testDirectives.py 
Log Message:
Okay, I fixed the the VFS implementation again. There is quiet some work left 
though. We have to get rid of the _traverse view for folders, then I can do 
some more. Also, I still have to do some general cleanup in the Publisher 
and Traverser.


=== Zope3/lib/python/Zope/App/Publisher/XMLRPC/tests/testDirectives.py 1.3 => 1.4 ===
             V1)
          
-    def testDefaultView(self):
-        self.assertEqual(queryView(ob, 'test', request,
-                                   None), None)
-
-        xmlconfig(StringIO(template % (
-            """
-            <xmlrpc:defaultView name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" /> 
-            """
-            ))) 
-
-        self.assertEqual(queryView(ob, 'test',
-                                   request, None
-                                 ).__class__, V1)
-        self.assertEqual(getDefaultViewName(ob, request
-                                 ), 'test')
-                                 
 
     def testInterfaceProtectedView(self):
         xmlconfig(StringIO(template %
@@ -112,7 +94,7 @@
                   factory="Zope.ComponentArchitecture.tests.TestViews.V1"
                   for="Zope.ComponentArchitecture.tests.TestViews.IC" 
                   permission="Zope.Public"
-                  allowed_attributes="action"
+                  allowed_methods="action"
                   /> 
             """
             ))
@@ -130,7 +112,7 @@
                   factory="Zope.ComponentArchitecture.tests.TestViews.V1"
                   for="Zope.ComponentArchitecture.tests.TestViews.IC" 
                   permission="Zope.Public"
-                  allowed_attributes="action"
+                  allowed_methods="action"
               allowed_interface="Zope.ComponentArchitecture.tests.TestViews.IV"
                   /> 
             """
@@ -148,7 +130,7 @@
                   factory="Zope.ComponentArchitecture.tests.TestViews.V1"
                   for="Zope.ComponentArchitecture.tests.TestViews.IC" 
                   permission="Zope.Public"
-                  allowed_attributes="action index"
+                  allowed_methods="action index"
               allowed_interface="Zope.ComponentArchitecture.tests.TestViews.IV"
                   /> 
             """
@@ -168,7 +150,7 @@
             <xmlrpc:view name="test"
                   factory="Zope.ComponentArchitecture.tests.TestViews.V1"
                   for="Zope.ComponentArchitecture.tests.TestViews.IC" 
-                  allowed_attributes="action index"
+                  allowed_methods="action index"
                   /> 
             """
             ))
@@ -194,6 +176,7 @@
         self.assertEqual(v(), 'V1 here')
         v = getView(ob, 'action.html', request)
         self.assertEqual(v(), 'done')
+
 
     def testMethodViewsWithName(self):
         self.assertEqual(queryView(ob, 'test', request),