[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/ftests/test_textareawidget.py Added explanantion.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Jul 9 11:47:12 EDT 2004


Log message for revision 26355:

Added explanantion.




-=-
Modified: Zope3/trunk/src/zope/app/form/browser/ftests/test_textareawidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/ftests/test_textareawidget.py	2004-07-09 15:47:10 UTC (rev 26354)
+++ Zope3/trunk/src/zope/app/form/browser/ftests/test_textareawidget.py	2004-07-09 15:47:12 UTC (rev 26355)
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 import unittest
 from persistent import Persistent
 from transaction import get_transaction
@@ -117,9 +116,10 @@
             'UPDATE_SUBMIT' : '',
             'field.s1' : 123 }) # not unicode
         self.assertEqual(response.getStatus(), 200)
-        
-        object = traverse(self.getRootFolder(), 'test')
-        self.assert_(object.s1, '123')
+        # Note: We don't have a invalid field value
+        # since we convert the value to unicode
+        self.assert_(not validationErrorExists(
+            's1', 'Object is of wrong type.', response.getBody()))
 
 
     def test_missing_value(self):



More information about the Zope3-Checkins mailing list