[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/browser/skins/tests/test_icons.py Docstrings in test methods converted to comments.
Charlie Clark
charlie at begeistert.org
Fri Jun 25 16:15:49 EDT 2010
Log message for revision 113843:
Docstrings in test methods converted to comments.
Changed:
U Products.CMFDefault/trunk/Products/CMFDefault/browser/skins/tests/test_icons.py
-=-
Modified: Products.CMFDefault/trunk/Products/CMFDefault/browser/skins/tests/test_icons.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/browser/skins/tests/test_icons.py 2010-06-25 19:01:47 UTC (rev 113842)
+++ Products.CMFDefault/trunk/Products/CMFDefault/browser/skins/tests/test_icons.py 2010-06-25 20:15:48 UTC (rev 113843)
@@ -45,26 +45,26 @@
return site
def test_show_icons_not_set(self):
- """Show action icons not set"""
+ #Show action icons not set
view = self._makeOne()
self.failIf(view._show_icons)
def test_show_icons_enabled(self):
- """Show actions set to True"""
+ #Show actions set to True
site = self._makeSite()
site.portal_properties.enable_actionicons = True
view = self._makeOne(site)
self.failUnless(view._show_icons)
def test_show_icons_disabled(self):
- """Show actions set to False"""
+ #Show action icons set to False
site = self._makeSite()
site.portal_properties.enable_actionicons = False
view = self._makeOne(site)
self.failIf(view._show_icons)
def test_type_icons_with_action_icons_disabled(self):
- """Type actions should always be visible"""
+ #Type actions should always be visible
types = [DummyType("Document"), DummyType("Image")]
site = self._makeSite(types=types)
view = self._makeOne(site)
@@ -76,7 +76,7 @@
.Image {background: url(http://example.com/Image.png) no-repeat 0.1em}""")
def test_type_icons_with_action_icons_enabled(self):
- """Type actions should always be visible"""
+ #Type actions should always be visible"""
types = [DummyType("Document"), DummyType("Image")]
site = self._makeSite(types=types)
site.portal_properties.enable_actionicons = True
@@ -89,7 +89,7 @@
.Image {background: url(http://example.com/Image.png) no-repeat 0.1em}""")
def test_action_icons_with_action_icons_disabled(self):
- """Action icons disabled. Image less styles should be returned."""
+ #Action icons disabled. Image less styles should be returned.
site = self._makeSite(actions=ACTIONS)
view = self._makeOne(site)
self.failIf(view.show_icons)
@@ -118,7 +118,7 @@
.Undo {/* Undo.png */}""")
def test_action_icons_with_action_icons_enabled(self):
- """Action icons enabled. Styles with images should be returned."""
+ #Action icons enabled. Styles with images should be returned.
site = self._makeSite(actions=ACTIONS)
site.portal_properties.enable_actionicons = True
view = self._makeOne(site)
More information about the checkins
mailing list