def setUp(self): import Products.CMFCore.exportimport from Products.CMFCore.CachingPolicyManager import CachingPolicy NodeAdapterTestCase.setUp(self) zcml.load_config('configure.zcml', Products.CMFCore.exportimport) self._obj = CachingPolicy('foo_policy', max_age_secs=0) self._XML = _CP_XML
def setUp(self): from Products.CMFCore.CachingPolicyManager import CachingPolicy self._obj = CachingPolicy('foo_policy', max_age_secs=0) self._XML = _CP_XML
def _makePolicy(self, policy_id, **kw): from Products.CMFCore.CachingPolicyManager import CachingPolicy return CachingPolicy(policy_id, **kw)
def _makePolicy(self, policy_id, **kw): return CachingPolicy(policy_id, **kw)