[CMF-checkins] CVS: Products/CMFDefault/tests - test_Document.py:1.40 test_Image.py:1.9

Florent Guillaume fg at nuxeo.com
Wed Nov 24 10:12:31 EST 2004


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

Modified Files:
	test_Document.py test_Image.py 
Log Message:
Removed docstrings in test methods, in favor of comments.
Docstrings are a pain when using test.py verbose mode (-vv).



=== Products/CMFDefault/tests/test_Document.py 1.39 => 1.40 ===
--- Products/CMFDefault/tests/test_Document.py:1.39	Wed Oct 27 05:25:47 2004
+++ Products/CMFDefault/tests/test_Document.py	Wed Nov 24 10:12:30 2004
@@ -163,7 +163,7 @@
         self.assertEqual( d.CookedBody(), body )
 
     def test_Htmltag_removal_and_formatchange(self):
-        """ Test for http://www.zope.org/Collectors/CMF/214 """
+        # Test for http://www.zope.org/Collectors/CMF/214
         d = self._makeOne('foo')
         quoted_html = html_quote(BASIC_HTML)
 
@@ -182,7 +182,7 @@
         self.failIf(new_body==BASIC_HTML)
 
     def test_Html_Fragment(self):
-        """test that edits with HTML fragments behave nicely"""
+        # Test that edits with HTML fragments behave nicely
         FRAGMENT = '<div id="placeholder">CONTENT</div>'
         d = self._makeOne('foo')
         d.edit(text_format='html', text=FRAGMENT)
@@ -190,7 +190,7 @@
         self.assertEqual( d.get_size(), len(FRAGMENT) )
 
     def test_plain_text(self):
-        """test that plain text forrmat works"""
+        # test that plain text forrmat works
         PLAIN_TEXT = '*some plain text*\nwith a newline'
         d = self._makeOne('foo')
         d.edit(text_format='plain', text=PLAIN_TEXT)


=== Products/CMFDefault/tests/test_Image.py 1.8 => 1.9 ===
--- Products/CMFDefault/tests/test_Image.py:1.8	Sat Aug  7 14:21:07 2004
+++ Products/CMFDefault/tests/test_Image.py	Wed Nov 24 10:12:31 2004
@@ -45,7 +45,7 @@
         assert image.get_size() == testfilesize
 
     def test_File_setFormat(self):
-        """ Setting the DC.format must also set the content_type property """
+        # Setting the DC.format must also set the content_type property
         file = File('testfile', format='image/jpeg')
         self.assertEqual(file.Format(), 'image/jpeg')
         self.assertEqual(file.content_type, 'image/jpeg')
@@ -54,7 +54,7 @@
         self.assertEqual(file.content_type, 'image/gif')
  
     def test_Image_setFormat(self):
-        """ Setting the DC.format must also set the content_type property """
+        # Setting the DC.format must also set the content_type property
         image = Image('testimage', format='image/jpeg')
         self.assertEqual(image.Format(), 'image/jpeg')
         self.assertEqual(image.content_type, 'image/jpeg')



More information about the CMF-checkins mailing list