[CMF-checkins] CVS: Products/CMFCore/tests - test_FSMetadata.py:1.9
test_OpaqueItems.py:1.10
Yvo Schubbe
y.2005- at wcm-solutions.de
Sun Apr 3 15:29:48 EDT 2005
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv28462/CMFCore/tests
Modified Files:
test_FSMetadata.py test_OpaqueItems.py
Log Message:
- removed unused imports
- replaced apply
=== Products/CMFCore/tests/test_FSMetadata.py 1.8 => 1.9 ===
--- Products/CMFCore/tests/test_FSMetadata.py:1.8 Sat Dec 4 17:05:18 2004
+++ Products/CMFCore/tests/test_FSMetadata.py Sun Apr 3 15:29:17 2005
@@ -3,16 +3,6 @@
import Zope
Zope.startup()
-from types import ListType
-from os import remove
-from os.path import join
-from time import sleep
-
-from Globals import DevelopmentMode
-
-from Products.CMFCore.tests.base.testcase import RequestTest
-from Products.CMFCore.tests.base.testcase import FSDVTest
-
from test_FSSecurity import FSSecurityBase
=== Products/CMFCore/tests/test_OpaqueItems.py 1.9 => 1.10 ===
--- Products/CMFCore/tests/test_OpaqueItems.py:1.9 Thu Jul 22 09:47:48 2004
+++ Products/CMFCore/tests/test_OpaqueItems.py Sun Apr 3 15:29:17 2005
@@ -1,8 +1,7 @@
-from unittest import TestCase, TestSuite, makeSuite, main
+from unittest import TestSuite, makeSuite, main
import Testing
import Zope
Zope.startup()
-from Interface.Verify import verifyClass
from Products.CMFCore.interfaces.IOpaqueItems \
import ICallableOpaqueItem, ICallableOpaqueItemEvents
@@ -29,8 +28,8 @@
""" A Dummy piece of PortalContent with additional attributes
"""
- def __init__(self, id='dummy', opaqueItem=None, *args, **kw ):
- apply(OriginalDummyContent.__init__, (self, id) + args, kw)
+ def __init__(self, id='dummy', opaqueItem=None, *args, **kw):
+ OriginalDummyContent.__init__(self, id, *args, **kw)
if opaqueItem is None:
self.opaqueItem = 'noncallable'
self.opaqueItemsId = 'opaqueItem'
More information about the CMF-checkins
mailing list