[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZMI/tests - testProvideClass.py:1.1.2.8.8.1 testServiceProvideClass.py:1.1.2.9.8.2
Steve Alexander
steve@cat-box.net
Mon, 3 Jun 2002 16:01:16 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/tests
In directory cvs.zope.org:/tmp/cvs-serv23405/lib/python/Zope/App/ZMI/tests
Modified Files:
Tag: Zope3InWonderland-branch
testProvideClass.py testServiceProvideClass.py
Log Message:
added content directive.
=== Zope3/lib/python/Zope/App/ZMI/tests/testProvideClass.py 1.1.2.8 => 1.1.2.8.8.1 ===
from Zope.App.ZMI import provideClass
- provideClass("AddableContent", 'My.Test.Addable', MyAddableObject,
- None, 'Testing')
+ provideClass(registry="AddableContent",
+ qualified_name="My.Test.Addable",
+ _class=MyAddableObject,
+ permission=None,
+ title='Testing')
- object = getService(None, "Factories").createObject('My.Test.Addable')
- self.assert_(isinstance(object, MyAddableObject))
+ obj = getService(None, "Factories").createObject('My.Test.Addable')
+ self.assert_(isinstance(obj, MyAddableObject))
def test_suite():
=== Zope3/lib/python/Zope/App/ZMI/tests/testServiceProvideClass.py 1.1.2.9.8.1 => 1.1.2.9.8.2 ===
description="This is a sample Service" />
- </zopeConfigure>
+ </zopeConfigure>
''' %(serviceName, serviceName)))
addables = getService(None,"AddableServices").getAddables(None)