[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component/tests - test_interfacewidget.py:1.1.2.3

Tim Peters tim.one@comcast.net
Tue, 24 Dec 2002 21:21:42 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	test_interfacewidget.py 
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py.  The
files are fixed-points of that script now.  Fixed a few cases where
code relied on significant trailing whitespace (ouch).


=== Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py:1.1.2.2	Tue Dec 24 07:50:48 2002
+++ Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py	Tue Dec 24 21:20:11 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Interface field widget tests
 
@@ -35,11 +35,11 @@
 class I(Interface):
     """bah blah
     """
-    
+
 class I2(Interface):
     """eek
     """
-    
+
 class I3(Interface):
     """
     """
@@ -48,7 +48,7 @@
 
     def two():
         """method two"""
-        
+
 class Test(CleanUp, TestCase):
     """Test Interface for InterfaceService Instance.
     """
@@ -62,43 +62,43 @@
         service.provideInterface(I3.__module__+'.'+I3.__name__, I3)
 
         request = TestRequest()
-        
+
         interfaceField = InterfaceField(__name__ = 'TestName',
                                         title = u"This is a test",
                                         required=False)
-        
+
         widget = SingleInterfaceWidget(interfaceField, request)
-        
+
         self.assertEqual(widget.getData(), None)
-       
+
         out = (
-        '<input type="text" name="field.TestName.search" value="">' 
-        '<select name="field.TestName">' 
+        '<input type="text" name="field.TestName.search" value="">'
+        '<select name="field.TestName">'
         '<option value="">---select interface---</option>'
 
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I'
         '">'
         'zope.app.browser.component.tests.test_interfacewidget.I'
-        '</option>' 
+        '</option>'
 
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I2'
         '">'
         'zope.app.browser.component.tests.test_interfacewidget.I2'
-        '</option>' 
+        '</option>'
 
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I3'
         '">'
         'zope.app.browser.component.tests.test_interfacewidget.I3'
-        '</option>' 
+        '</option>'
 
         '</select>'
         )
-        
+
         self.assertEqual(widget(), out)
-        
+
         out = (
         '<input type="text" name="field.TestName.search" value="">'
         '<select name="field.TestName">'
@@ -124,63 +124,61 @@
 
         '</select>'
         )
-        
+
         self.assertEqual(widget.render(I), out)
 
         self.assertEqual(widget.getData(), None)
 
         widget = SingleInterfaceWidget(interfaceField, request)
-        
+
         request.form["field.TestName"] = (
         'zope.app.browser.component.tests.test_interfacewidget.I2'
         )
         self.assertEqual(widget.getData(), I2)
 
         out = (
-        '<input type="text" name="field.TestName.search" value="">' 
-        '<select name="field.TestName">' 
+        '<input type="text" name="field.TestName.search" value="">'
+        '<select name="field.TestName">'
 
         '<option value="">---select interface---</option>'
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I'
         '">'
         'zope.app.browser.component.tests.test_interfacewidget.I'
-        '</option>' 
+        '</option>'
 
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I2'
         '" selected>'
         'zope.app.browser.component.tests.test_interfacewidget.I2'
-        '</option>' 
+        '</option>'
 
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I3'
         '">'
         'zope.app.browser.component.tests.test_interfacewidget.I3'
-        '</option>' 
+        '</option>'
 
         '</select>'
         )
         self.assertEqual(widget(), out)
-                
+
         request.form["field.TestName.search"] = 'two'
         out = (
-        '<input type="text" name="field.TestName.search" value="two">' 
-        '<select name="field.TestName">' 
+        '<input type="text" name="field.TestName.search" value="two">'
+        '<select name="field.TestName">'
         '<option value="">---select interface---</option>'
 
         '<option value="'
         'zope.app.browser.component.tests.test_interfacewidget.I3'
         '">'
         'zope.app.browser.component.tests.test_interfacewidget.I3'
-        '</option>' 
+        '</option>'
 
         '</select>'
         )
         self.assertEqual(widget(), out)
 
-       
+
 def test_suite():
     return TestSuite((makeSuite(Test),))
-
-