[CMF-checkins] CVS: Products/CMFDefault/tests -
test_Document.py:1.28.4.4 test_NewsItem.py:1.7.40.2
Jens Vagelpohl
jens at dataflake.org
Wed Aug 4 02:12:58 EDT 2004
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv20550/CMFDefault/tests
Modified Files:
Tag: CMF-1_4-branch
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.28.4.3 => 1.28.4.4 ===
--- Products/CMFDefault/tests/test_Document.py:1.28.4.3 Sun Aug 1 16:33:25 2004
+++ Products/CMFDefault/tests/test_Document.py Wed Aug 4 02:12:57 2004
@@ -456,6 +456,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.7.40.1 => 1.7.40.2 ===
--- Products/CMFDefault/tests/test_NewsItem.py:1.7.40.1 Thu Apr 22 13:47:55 2004
+++ Products/CMFDefault/tests/test_NewsItem.py Wed Aug 4 02:12:57 2004
@@ -122,6 +122,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 makeSuite(NewsItemTests)
More information about the CMF-checkins
mailing list