[CMF-checkins] CVS: Products/CMFCore/tests - test_CachingPolicyManager.py:1.10

Jens Vagelpohl jens at zope.com
Thu Aug 14 20:32:13 EDT 2003


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv32758

Modified Files:
	test_CachingPolicyManager.py 
Log Message:
- fix unit tests



=== Products/CMFCore/tests/test_CachingPolicyManager.py 1.9 => 1.10 ===
--- Products/CMFCore/tests/test_CachingPolicyManager.py:1.9	Wed Jul  3 14:01:35 2002
+++ Products/CMFCore/tests/test_CachingPolicyManager.py	Thu Aug 14 19:32:07 2003
@@ -251,14 +251,14 @@
         self.assertEqual( len( headers ), 0 )
 
         self.assertRaises( KeyError, mgr._updatePolicy
-                         , 'xyzzy', None, None, None, None, None, None )
+                         , 'xyzzy', None, None, None, None, None, None, '' )
         self.assertRaises( KeyError, mgr._removePolicy, 'xyzzy' )
         self.assertRaises( KeyError, mgr._reorderPolicy, 'xyzzy', -1 )
     
     def test_addPolicy( self ):
 
         mgr = self._makeOne()
-        mgr._addPolicy( 'first', 'python:1', None, 0, 0, 0, 0 )
+        mgr._addPolicy( 'first', 'python:1', None, 0, 0, 0, 0, '' )
         headers = mgr.getHTTPCachingHeaders( content=DummyContent(self._epoch)
                                            , view_method='foo_view'
                                            , keywords={}
@@ -283,7 +283,7 @@
         for policy_id in policy_ids:
             mgr._addPolicy( policy_id
                           , 'python:"%s" in keywords.keys()' % policy_id
-                          , None, 0, 0, 0, 0 )
+                          , None, 0, 0, 0, 0, '' )
 
         ids = tuple( map( lambda x: x[0], mgr.listPolicies() ) )
         self.assertEqual( ids, policy_ids )
@@ -306,7 +306,7 @@
         for policy_id, max_age_secs in policy_tuples:
             mgr._addPolicy( policy_id
                           , 'python:"%s" in keywords.keys()' % policy_id
-                          , None, max_age_secs, 0, 0, 0 )
+                          , None, max_age_secs, 0, 0, 0, '' )
 
         return mgr
 




More information about the CMF-checkins mailing list