[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Folder/tests - testFolderAdder.py:1.1.2.5
Casey Duncan
casey_duncan@yahoo.com
Sat, 9 Feb 2002 17:22:45 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Folder/tests
In directory cvs.zope.org:/tmp/cvs-serv9255
Modified Files:
Tag: Zope-3x-branch
testFolderAdder.py
Log Message:
Fixed testFolderAdder unit test
=== Zope3/lib/python/Zope/App/OFS/Folder/tests/testFolderAdder.py 1.1.2.4 => 1.1.2.5 ===
from Zope.App.OFS.Folder.FolderAdder import DuplicateIDError
from Zope.App.OFS.Folder.Folder import Folder
-from Zope.App.ZMI.Addable import ContentAddables
from Zope.App.ZMI.provideClass import provideClass
-from Zope.App.ZMI.Addable import ContentAddable
+from Zope.App.ZMI.Addable import ContentAddables
class Foo: pass
class Bar: pass
@@ -84,19 +83,19 @@
Can we get add an object back when some classes have
been registered?
"""
- provideClass( ContentAddable
+ provideClass( ContentAddables
, qualified_name='Zope.App.OFS.tests.testFolderAdd.Foo'
, _class=Foo
, permission=AddPermission
, title='Foo'
)
- provideClass(ContentAddable
+ provideClass(ContentAddables
, qualified_name='Zope.App.OFS.tests.testFolderAdd.Bar'
, _class=Bar
, permission=AddPermission
, title='Bar'
)
- provideClass(ContentAddable
+ provideClass(ContentAddables
, qualified_name='Zope.App.OFS.tests.testFolderAdd.Baz'
, _class=Baz
, permission=AddPermission
@@ -111,7 +110,8 @@
class AddingTest( unittest.TestCase ):
def setUp( self ):
- provideClass( qualified_name='Zope.App.OFS.Folder'
+ provideClass(ContentAddables
+ , qualified_name='Zope.App.OFS.Folder'
, _class=Folder
, permission=AddPermission
, title='Folder'