[CMF-checkins] CVS: Products/CMFCore/tests - test_CMFCatalogAware.py:1.1.4.3

Florent Guillaume fg at nuxeo.com
Fri Jun 3 13:11:41 EDT 2005


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

Modified Files:
      Tag: CMF-1_5-branch
	test_CMFCatalogAware.py 
Log Message:
CMFCatalogAware: allow easy subclassing of the "security indexes" that
are reindexed by reindexObjectSecurity(), through the attribute
_cmf_security_indexes.



=== Products/CMFCore/tests/test_CMFCatalogAware.py 1.1.4.2 => 1.1.4.3 ===
--- Products/CMFCore/tests/test_CMFCatalogAware.py:1.1.4.2	Fri Apr 22 14:50:32 2005
+++ Products/CMFCore/tests/test_CMFCatalogAware.py	Fri Jun  3 13:11:41 2005
@@ -147,9 +147,9 @@
         l = list(cat.log)
         l.sort()
         self.assertEquals(l, [
-            "reindex /site/foo ['allowedRolesAndUsers']",
-            "reindex /site/foo/bar ['allowedRolesAndUsers']",
-            "reindex /site/foo/hop ['allowedRolesAndUsers']",
+            "reindex /site/foo ('allowedRolesAndUsers',)",
+            "reindex /site/foo/bar ('allowedRolesAndUsers',)",
+            "reindex /site/foo/hop ('allowedRolesAndUsers',)",
             ])
         self.failIf(foo.notified)
         self.failIf(bar.notified)
@@ -168,9 +168,9 @@
         l = list(cat.log)
         l.sort()
         self.assertEquals(l, [
-            "reindex /site/foo ['allowedRolesAndUsers']",
-            "reindex /site/foo/bar ['allowedRolesAndUsers']",
-            "reindex /site/foo/hop ['allowedRolesAndUsers']",
+            "reindex /site/foo ('allowedRolesAndUsers',)",
+            "reindex /site/foo/bar ('allowedRolesAndUsers',)",
+            "reindex /site/foo/hop ('allowedRolesAndUsers',)",
             ])
         self.failIf(foo.notified)
         self.failIf(bar.notified)
@@ -194,7 +194,7 @@
         cat.setObs([foo, missing])
         foo.reindexObjectSecurity()
         self.assertEquals(cat.log,
-                          ["reindex /site/foo ['allowedRolesAndUsers']"])
+                          ["reindex /site/foo ('allowedRolesAndUsers',)"])
         self.failIf(foo.notified)
         self.failIf(missing.notified)
 
@@ -208,7 +208,7 @@
         cat.setObs([foo, missing])
         foo.reindexObjectSecurity()
         self.assertEquals(cat.log,
-                          ["reindex /site/foo ['allowedRolesAndUsers']"])
+                          ["reindex /site/foo ('allowedRolesAndUsers',)"])
         self.failIf(foo.notified)
         self.failIf(missing.notified)
 



More information about the CMF-checkins mailing list