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

Jim Fulton jim@zope.com
Mon, 3 Jun 2002 14:25:35 -0400


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

Modified Files:
      Tag: Zope3InWonderland-branch
	testDirectives.py 
Log Message:
Changed list attribute syntax to be more XML standard.
In particular, list attributes now expect items to be separated by
whitespace, rather than commas.


=== Zope3/lib/python/Zope/App/Publisher/Browser/tests/testDirectives.py 1.1.2.3 => 1.1.2.4 ===
         xmlconfig(StringIO(template % (
             """
-            <browser:skin name="zmi" layers="zmi," />
+            <browser:skin name="zmi" layers="zmi default" />
             <browser:view name="test"
                   factory="Zope.ComponentArchitecture.tests.TestViews.VZMI"
                   layer="zmi" 
@@ -137,7 +137,7 @@
 
         xmlconfig(StringIO(template % (
             """
-            <browser:skin name="zmi" layers="zmi," />
+            <browser:skin name="zmi" layers="zmi default" />
             <browser:resource name="test"
                   factory="Zope.ComponentArchitecture.tests.TestViews.RZMI"
                   layer="zmi" /> 
@@ -290,7 +290,7 @@
             """
             <directives namespace="http://namespaces.zope.org/security">
               <directive name="permission"
-                 attributes="id, title, description"
+                 attributes="id title description"
                  handler="Zope.App.Security.metaConfigure.definePermission" />
             </directives>
 
@@ -322,7 +322,7 @@
 
         xmlconfig(StringIO(template %
             """
-            <browser:skin name="skinny" layers="layer," />
+            <browser:skin name="skinny" layers="layer default" />
             <browser:view
                   factory="Zope.ComponentArchitecture.tests.TestViews.V1">
 
@@ -386,7 +386,7 @@
             """
             <directives namespace="http://namespaces.zope.org/security">
               <directive name="permission"
-                 attributes="id, title, description"
+                 attributes="id title description"
                  handler="Zope.App.Security.metaConfigure.definePermission" />
             </directives>