[CMF-checkins] CVS: Products/CMFDefault/tests - test_SyndicationTool.py:1.1.2.2

Stefan H. Holek stefan at epy.co.at
Mon Jun 13 05:17:39 EDT 2005


Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv26331/CMFDefault/tests

Modified Files:
      Tag: CMF-1_5-branch
	test_SyndicationTool.py 
Log Message:
CMFDefault.SyndicationTool: Zope 2.8 raises AttributeError where
earlier Zopes used to raise KeyError.


=== Products/CMFDefault/tests/test_SyndicationTool.py 1.1.2.1 => 1.1.2.2 ===
--- Products/CMFDefault/tests/test_SyndicationTool.py:1.1.2.1	Fri Apr 22 17:42:37 2005
+++ Products/CMFDefault/tests/test_SyndicationTool.py	Mon Jun 13 05:17:38 2005
@@ -125,6 +125,15 @@
         self.assertEqual(info.syUpdateBase, DateTime(NOW.ISO()))
         self.assertEqual(info.max_items, MAX_ITEMS)
 
+    def test_editProperties_isAllowedOnly(self):
+        # Zope 2.8 crashes if we don't edit all properties.
+        # This is because Zope now raises AttributeError
+        # instead of KeyError in editProperties().
+        tool = self._makeOne()
+        tool.editProperties(isAllowed=1)
+
+        self.failUnless(tool.isAllowed)
+
 def test_suite():
     return TestSuite((
         makeSuite(SyndicationToolTests),



More information about the CMF-checkins mailing list