[CMF-checkins]
SVN: CMF/branches/2.0/CMFCore/tests/test_FSPropertiesObject.py
Further global import cleanups.
Tres Seaver
tseaver at palladion.com
Fri Sep 8 13:46:17 EDT 2006
Log message for revision 70073:
Further global import cleanups.
Changed:
U CMF/branches/2.0/CMFCore/tests/test_FSPropertiesObject.py
-=-
Modified: CMF/branches/2.0/CMFCore/tests/test_FSPropertiesObject.py
===================================================================
--- CMF/branches/2.0/CMFCore/tests/test_FSPropertiesObject.py 2006-09-08 17:20:08 UTC (rev 70072)
+++ CMF/branches/2.0/CMFCore/tests/test_FSPropertiesObject.py 2006-09-08 17:46:16 UTC (rev 70073)
@@ -1,9 +1,5 @@
import unittest
-from os.path import join
-
-from OFS.Folder import Folder
-
from Products.CMFCore.tests.base.testcase import FSDVTest
from Products.CMFCore.tests.base.testcase import SecurityTest
@@ -22,10 +18,13 @@
return FSPropertiesObject
def _makeOne( self, id, filename ):
+ from os.path import join
path = join(self.skin_path_name, filename)
return self._getTargetClass()( id, path )
def _makeContext( self, po_id, po_filename ):
+ from OFS.Folder import Folder
+
self.root._setObject( 'portal_skins', Folder( 'portal_skins' ) )
skins = self.root.portal_skins
More information about the CMF-checkins
mailing list