[CMF-checkins] CVS: Products/CMFDefault/tests -
test_Document.py:1.28.4.6 test_Image.py:1.4.40.4
Florent Guillaume
fg at nuxeo.com
Wed Nov 24 11:02:50 EST 2004
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv19002/CMFDefault/tests
Modified Files:
Tag: CMF-1_4-branch
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.28.4.5 => 1.28.4.6 ===
--- Products/CMFDefault/tests/test_Document.py:1.28.4.5 Wed Aug 4 17:21:00 2004
+++ Products/CMFDefault/tests/test_Document.py Wed Nov 24 11:02:49 2004
@@ -121,7 +121,7 @@
self.assertEqual( d.CookedBody(), body )
def test_plain_text(self):
- """test that plain text forrmat works"""
+ # test that plain text forrmat works
d = self.d
d.edit(text_format='plain', text='*some plain text*\nwith a newline')
self.assertEqual( d.CookedBody(), '*some plain text*<br />with a newline')
=== Products/CMFDefault/tests/test_Image.py 1.4.40.3 => 1.4.40.4 ===
--- Products/CMFDefault/tests/test_Image.py:1.4.40.3 Sat Aug 7 15:24:09 2004
+++ Products/CMFDefault/tests/test_Image.py Wed Nov 24 11:02:49 2004
@@ -17,7 +17,7 @@
class TestImageElement(TestCase):
def test_EditWithEmptyFile(self):
- """ Test handling of empty file uploads """
+ # Test handling of empty file uploads
image = Image('testimage')
testfile = open(TEST_JPG, 'rb')
@@ -35,7 +35,7 @@
assert image.get_size() == testfilesize
def test_File_setFormat(self):
- """ Setting the format must also set the content_type property """
+ # Setting the 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')
@@ -44,7 +44,7 @@
self.assertEqual(file.content_type, 'image/gif')
def test_Image_setFormat(self):
- """ Setting the format must also set the content_type property """
+ # Setting the 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