[CMF-checkins] CVS: CMF/CMFDefault/tests - test_Document.py:1.23
Chris Withers
chrisw@nipltd.com
Mon, 1 Apr 2002 06:22:32 -0500
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv7538/CMFDefault/tests
Modified Files:
test_Document.py
Log Message:
Added 'plain' text format.
=== CMF/CMFDefault/tests/test_Document.py 1.22 => 1.23 ===
self.assertEqual( d.CookedBody(), body )
+ def test_plain_text(self):
+ """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')
def test_EditStructuredTextWithHTML(self):
d = self.d