[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ComponentArchitecture/Browser/tests - testInterfaceWidget.py:1.2

Holger Krekel hpk@devel.trillke.net
Thu, 5 Dec 2002 08:27:35 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/ComponentArchitecture/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv27419/lib/python/Zope/App/ComponentArchitecture/Browser/tests

Modified Files:
	testInterfaceWidget.py 
Log Message:
- refactored/renamed the fields in IField.py interfaces 
  together with Martijn Faassen to have expressive and
  consistent names.

- please note that now the 'required' field defaults
  to true. you have to explicitly state that you 
  want a Field to be optional (i.e. non-required).

- improved the docstrings

- modified the unittests to reflect the new situation



=== Zope3/lib/python/Zope/App/ComponentArchitecture/Browser/tests/testInterfaceWidget.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/ComponentArchitecture/Browser/tests/testInterfaceWidget.py:1.1	Wed Dec  4 04:54:06 2002
+++ Zope3/lib/python/Zope/App/ComponentArchitecture/Browser/tests/testInterfaceWidget.py	Thu Dec  5 08:27:04 2002
@@ -65,7 +65,8 @@
         request = TestRequest()
         
         interfaceField = InterfaceField(__name__ = 'TestName',
-                                        title = u"This is a test")
+                                        title = u"This is a test",
+                                        required=False)
         
         widget = SingleInterfaceWidget(interfaceField, request)