[CMF-checkins] CVS: Products/CMFDefault/tests -
test_SyndicationTool.py:1.2.2.3
Stefan H. Holek
stefan at epy.co.at
Mon Jun 13 05:18:07 EDT 2005
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv26531/CMFDefault/tests
Modified Files:
Tag: CMF-1_4-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.2.2.2 => 1.2.2.3 ===
--- Products/CMFDefault/tests/test_SyndicationTool.py:1.2.2.2 Sun Apr 24 03:06:05 2005
+++ Products/CMFDefault/tests/test_SyndicationTool.py Mon Jun 13 05:18:07 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