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

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


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

Modified Files:
	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.2 => 1.3 ===
--- Products/CMFDefault/tests/test_SyndicationTool.py:1.2	Fri Apr 22 17:42:53 2005
+++ Products/CMFDefault/tests/test_SyndicationTool.py	Mon Jun 13 05:17:08 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