[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration/tests - testMeta.py:1.1.2.7.4.2
Jim Fulton
jim@zope.com
Tue, 26 Mar 2002 19:00:56 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv16764/lib/python/Zope/Configuration/tests
Modified Files:
Tag: contextual-directives
testMeta.py
Log Message:
Debugged change to xmlconfigurator to allow dotted names to be
relative to include package.
=== Zope3/lib/python/Zope/Configuration/tests/testMeta.py 1.1.2.7.4.1 => 1.1.2.7.4.2 ===
register((ns, 'doit'), doit)
- subs = begin(None, name, (ns, 'doit'), name='splat')
+ subs = begin(None, (ns, 'doit'), name, name='splat')
(des, callable, args, kw), = end(subs)
self.assertEqual(des, 'd')
callable(*args)
@@ -40,7 +40,7 @@
subs = register((ns, 'protectClass'), protectClass)
registersub(subs, (ns, 'protect'))
- subs=begin(None, name, (ns, 'protectClass'),
+ subs=begin(None, (ns, 'protectClass'), name,
name=".Contact", permission="splat", methods='update')
(des, callable, args, kw), = end(subs)
@@ -56,15 +56,15 @@
subs = register((ns, 'protectClass'), protectClass)
registersub(subs, (ns, 'protect'))
- subs = begin(None, name, (ns, 'protectClass'), name=".Contact")
+ subs = begin(None, (ns, 'protectClass'), name, name=".Contact")
- actions = end(sub(subs, (ns, 'protect'),
+ actions = end(sub(subs, (ns, 'protect'), name,
permission='edit', methods='update'))
(des, callable, args, kw), = actions
self.assertEqual(des, ('.Contact', 'update'))
callable(*args)
- actions = end(sub(subs, (ns, 'protect'),
+ actions = end(sub(subs, (ns, 'protect'), name,
permission='view', methods='name, email'))
(des, callable, args, kw), = actions
self.assertEqual(des, ('.Contact', 'name, email'))