[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/File/tests - testFileEdit.py:1.1.2.2
Stephan Richter
srichter@cbu.edu
Fri, 25 Jan 2002 09:14:37 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/File/tests
In directory cvs.zope.org:/tmp/cvs-serv22869/lib/python/Zope/App/OFS/File/tests
Modified Files:
Tag: Zope-3x-branch
testFileEdit.py
Log Message:
- Okay, that should be everything you need to update in order to see
Formulator in action.
=== Zope3/lib/python/Zope/App/OFS/File/tests/testFileEdit.py 1.1.2.1 => 1.1.2.2 ===
fe = FileEdit(file)
- fe.edit('Data', 'text/plain')
+ fe.getContext().edit('Data', 'text/plain')
self.assertEqual(fe.getContext().getContentType(), 'text/plain')
self.assertEqual(fe.getContext().getData(), 'Data')