[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Forms/Views/Browser/tests - testFormView.py:1.4

Martijn Faassen m.faassen@vet.uu.nl
Sun, 14 Jul 2002 13:31:17 -0400


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

Modified Files:
	testFormView.py 
Log Message:
Renamed String, Integer, Boolean, Dictionary to the more Pythonic
Str, Int, Bool and Dict.


=== Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/testFormView.py 1.3 => 1.4 ===
 from Zope.App.Forms.Views.Browser.CheckboxWidget import CheckboxWidget
 
 import Schema
-from Schema.IField import IString, IBoolean
+from Schema.IField import IStr, IBool
 from Schema import _Schema # XXX to wire things up, should fix this
 
 #############################################################################
@@ -47,8 +47,8 @@
 #############################################################################
 
 class ITestSchema(Interface):
-    foo = Schema.String(title="Foo")
-    bar = Schema.Boolean(title="Bar")
+    foo = Schema.Str(title="Foo")
+    bar = Schema.Bool(title="Bar")
     
 class TestBrowserRequest(TestRequest):
     """Since we have IBrowserViews, we need a request that works
@@ -61,9 +61,9 @@
     def setUp(self):
         PlacelessSetup.setUp(self)
         viewService = self.getViewService()
-        viewService.provideView(IString, 'normal', IBrowserView,
+        viewService.provideView(IStr, 'normal', IBrowserView,
                                 [TextWidget])
-        viewService.provideView(IBoolean, 'normal', IBrowserView,
+        viewService.provideView(IBool, 'normal', IBrowserView,
                                 [CheckboxWidget])
         
     def getViewService(self):