[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/tests/test_SyndicationTool.py Added explicit tests for enabling and disabling site syndication.

Charlie Clark cvs-admin at zope.org
Wed Sep 5 11:35:28 UTC 2012


Log message for revision 127706:
  Added explicit tests for enabling and disabling site syndication.

Changed:
  U   Products.CMFDefault/trunk/Products/CMFDefault/tests/test_SyndicationTool.py

-=-
Modified: Products.CMFDefault/trunk/Products/CMFDefault/tests/test_SyndicationTool.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/tests/test_SyndicationTool.py	2012-09-05 11:22:15 UTC (rev 127705)
+++ Products.CMFDefault/trunk/Products/CMFDefault/tests/test_SyndicationTool.py	2012-09-05 11:35:24 UTC (rev 127706)
@@ -135,6 +135,19 @@
         self.assertFalse(tool.enabled)
         self.assertEqual(tool.max_items, 15)
 
+    def test_enable_site_syndication(self):
+        tool = self._makeOne()
+        self.assertFalse(tool.enabled)
+        tool.enable()
+        self.assertTrue(tool.enabled)
+
+    def test_disable_site_syndication(self):
+        tool = self._makeOne()
+        self.assertFalse(tool.enabled)
+        tool.enable()
+        tool.disable()
+        self.assertFalse(tool.enabled)
+
     def test_object_not_syndicatable(self):
         tool = self._makeOne()
         self.assertFalse(tool.isSyndicationAllowed(Dummy))



More information about the checkins mailing list