[CMF-checkins] CVS: CMF/CMFDefault/tests - test_Document.py:1.17
Tres Seaver
tseaver@zope.com
Sun, 2 Dec 2001 21:48:59 -0500
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv16786/tests
Modified Files:
test_Document.py
Log Message:
- Sync ZMI edit method with "normal" protocol (passing 'text_format')
Tracker #417.
=== CMF/CMFDefault/tests/test_Document.py 1.16 => 1.17 ===
)
- munge = '\n%s' % STX_NO_HEADERS_BUT_COLON
d.edit(text_format='structured-text', text=STX_NO_HEADERS_BUT_COLON)
+ self.assertEqual( d.EditableBody(), STX_NO_HEADERS_BUT_COLON )
+
+ def test_ZMI_edit( self ):
+ d = Document('foo')
+ d._editMetadata( title="Plain STX"
+ , description="Look, Ma, no headers!"
+ , subject=( "plain", "STX" )
+ )
+
+ d.manage_editDocument( text_format='structured-text'
+ , text=STX_NO_HEADERS_BUT_COLON)
self.assertEqual( d.EditableBody(), STX_NO_HEADERS_BUT_COLON )