[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_editview.py:1.11

Richard Jones richard@commonground.com.au
Fri, 11 Jul 2003 21:29:36 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv13790/src/zope/app/browser/form/tests

Modified Files:
	test_editview.py 
Log Message:
Implement Sequence Widget used by Sequence Fields (Tuple and List).


=== Zope3/src/zope/app/browser/form/tests/test_editview.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/form/tests/test_editview.py:1.10	Wed Jul  2 18:10:39 2003
+++ Zope3/src/zope/app/browser/form/tests/test_editview.py	Fri Jul 11 21:29:01 2003
@@ -33,7 +33,7 @@
     foo = TextLine(title=u"Foo")
     bar = TextLine(title=u"Bar")
     a   = TextLine(title=u"A")
-    b   = TextLine(title=u"B")
+    b   = TextLine(title=u"B", min_length=0)
     getbaz, setbaz = accessors(TextLine(title=u"Baz"))
 
 class EV(EditView):
@@ -116,11 +116,12 @@
         d['foo'] = u'd foo'
         d['bar'] = u'd bar'
         d['getbaz'] = u'd baz'
+        d['b'] = u''
         self.failIf(v.apply_update(d))
         self.assertEqual(c.foo, u'd foo')
         self.assertEqual(c.bar, u'd bar')
         self.assertEqual(c.a  , u'c a')
-        self.assertEqual(c.b  , u'c b')
+        self.assertEqual(c.b  , u'')
         self.assertEqual(c.getbaz(), u'd baz')
         self.failUnless(getEvents(filter=lambda event: event.object == c))