[CMF-checkins] CVS: CMF/CMFCore/tests - test_CachingPolicyManager.py:1.9 test_FSImage.py:1.4 test_FSPageTemplate.py:1.6
Tres Seaver
tseaver@zope.com
Wed, 3 Jul 2002 14:01:36 -0400
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv11582/CMFCore/tests
Modified Files:
test_CachingPolicyManager.py test_FSImage.py
test_FSPageTemplate.py
Log Message:
- CMFCore/interfaces/CachingPolicyManager.py:
o Update interface to account for optional 'time' parameter to
'getHTTPCachingHeaders'; this parameter allows unit tests to run
with predictable values, rather than being subject to vagaries of
the clock.
- CMFCore/tests/test_CachingPolicyManager.py:
o Remove redundant test.
- CMFCore/tests/tests_FS*.py:
o Update dummy CP manager to fit revised interface.
=== CMF/CMFCore/tests/test_CachingPolicyManager.py 1.8 => 1.9 ===
, 'foo_view', kw, self._epoch )
- def test_interface( self ):
- from Products.CMFCore.interfaces.CachingPolicyManager \
- import CachingPolicyManager as ICachingPolicyManager
- from Products.CMFCore.CachingPolicyManager import CachingPolicyManager
- try:
- from Interface import verify_class_implementation as verifyClass
- except ImportError:
- from Interface.Verify import verifyClass
-
- verifyClass(ICachingPolicyManager, CachingPolicyManager)
-
def test_empty( self ):
policy = self._makePolicy( 'empty' )
=== CMF/CMFCore/tests/test_FSImage.py 1.3 => 1.4 ===
class DummyCachingManager:
- def getHTTPCachingHeaders( self, content, view_name, keywords ):
+ def getHTTPCachingHeaders( self, content, view_name, keywords, time=None ):
return ( ( 'foo', 'Foo' ), ( 'bar', 'Bar' ) )
from Products.CMFCore.tests.base.testcase import RequestTest, SecurityTest
=== CMF/CMFCore/tests/test_FSPageTemplate.py 1.5 => 1.6 ===
class DummyCachingManager:
- def getHTTPCachingHeaders( self, content, view_name, keywords ):
+ def getHTTPCachingHeaders( self, content, view_name, keywords, time=None ):
return ( ( 'foo', 'Foo' ), ( 'bar', 'Bar' ) )
from Products.CMFCore.tests.base.testcase import RequestTest, SecurityTest