[CMF-checkins] CVS: Products/CMFDefault/tests -
test_Document.py:1.35 test_NewsItem.py:1.10
Jens Vagelpohl
jens at dataflake.org
Wed Aug 4 02:12:25 EDT 2004
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv20292/CMFDefault/tests
Modified Files:
test_Document.py test_NewsItem.py
Log Message:
- Change default format for NewsItems to structured-text so it acts like a
Document (http://zope.org/Collectors/CMF/138)
=== Products/CMFDefault/tests/test_Document.py 1.34 => 1.35 ===
--- Products/CMFDefault/tests/test_Document.py:1.34 Sat Jul 31 10:06:33 2004
+++ Products/CMFDefault/tests/test_Document.py Wed Aug 4 02:12:25 2004
@@ -485,6 +485,12 @@
self.assertEqual( d.Rights(), '' )
self.assertEqual( r.status, 204 )
+ def test_default_format( self ):
+ d = self._makeOne('foo', text='')
+ self.assertEqual( d.Format(), 'text/plain' )
+ self.assertEqual( d.text_format, 'structured-text' )
+
+
def test_suite():
return TestSuite((
=== Products/CMFDefault/tests/test_NewsItem.py 1.9 => 1.10 ===
--- Products/CMFDefault/tests/test_NewsItem.py:1.9 Mon Apr 26 08:14:18 2004
+++ Products/CMFDefault/tests/test_NewsItem.py Wed Aug 4 02:12:25 2004
@@ -125,6 +125,12 @@
self.assertEqual( d.text_format, 'structured-text' )
self.assertEqual( d.text, '' )
+ def test_default_format( self ):
+ d = self._makeOne('foo', text='')
+ self.assertEqual( d.Format(), 'text/plain' )
+ self.assertEqual( d.text_format, 'structured-text' )
+
+
def test_suite():
return TestSuite((
More information about the CMF-checkins
mailing list