[CMF-checkins] CVS: CMF/CMFCore/tests - test_CachingPolicyManager.py:1.3
Tres Seaver
tseaver@zope.com
Thu, 21 Mar 2002 11:53:54 -0500
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv5155/CMFCore/tests
Modified Files:
test_CachingPolicyManager.py
Log Message:
- Issues noted by Florent Guillaume:
o CachingPolicyManager: Aliased interface to remove name clash between
interface and implemenation class for CachingPolicyManager.
o FSPageTemplate: Removed duplicated return statement, left from
merge / conflict resolution.
- Added interface test for CPM.
=== CMF/CMFCore/tests/test_CachingPolicyManager.py 1.2 => 1.3 ===
from Products.CMFCore.CachingPolicyManager import createCPContext
+ from Products.CMFCore.CachingPolicyManager import createCPContext
return createCPContext( DummyContent(), 'foo_view', kw )
+ def test_interface( self ):
+ from Products.CMFCore.interfaces.CachingPolicyManager \
+ import CachingPolicyManager as ICachingPolicyManager
+ from Products.CMFCore.CachingPolicyManager import CachingPolicyManager
+ from Interface import verify_class_implementation
+
+ verify_class_implementation( ICachingPolicyManager
+ , CachingPolicyManager )
+
def test_empty( self ):
policy = self._makePolicy( 'empty' )