[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/tests - test_permissionwidget.py:1.1.2.4

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


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

Modified Files:
      Tag: NameGeddon-branch
	test_permissionwidget.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/security/tests/test_permissionwidget.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py:1.1.2.3	Tue Dec 24 13:41:17 2002
+++ Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py	Tue Dec 24 21:20:16 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.
-# 
+#
 ##############################################################################
 """Permission field widget tests
 
@@ -43,18 +43,18 @@
                                             'ReRead something')
         reread_permission = permissionRegistry.getPermission('reread')
         request = TestRequest()
-        
+
         permissionField = PermissionField(__name__ = 'TestName',
                                           title = u"This is a test",
                                           required=False)
-        
+
         widget = SinglePermissionWidget(permissionField, 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 permission---</option>'
 
         '<option value="'
@@ -78,19 +78,19 @@
 
         '</select>'
         )
-        
+
         self.assertEqual(widget(), out)
 
         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 permission---</option>'
 
         '<option value="'
         'read'
         '" selected>'
         'read'
-        '</option>' 
+        '</option>'
 
         '<option value="'
         'reread'
@@ -102,7 +102,7 @@
         'zope.Public'
         '">'
         'zope.Public'
-        '</option>' 
+        '</option>'
 
         '</select>'
         )
@@ -114,26 +114,26 @@
         self.assertEqual(widget.getData(), None)
 
         widget = SinglePermissionWidget(permissionField, request)
-        
+
         request.form["field.TestName"] = (
         'read'
         )
         self.assertEqual(widget.getData(), read_permission)
 
         self.assertEqual(widget(), out)
-        
+
         request.form["field.TestName.search"] = 'read'
 
         out = (
-        '<input type="text" name="field.TestName.search" value="read">' 
-        '<select name="field.TestName">' 
+        '<input type="text" name="field.TestName.search" value="read">'
+        '<select name="field.TestName">'
         '<option value="">---select permission---</option>'
 
         '<option value="'
         'read'
         '" selected>'
         'read'
-        '</option>' 
+        '</option>'
 
         '<option value="'
         'reread'
@@ -145,10 +145,9 @@
         )
         self.assertEqual(widget(), out)
 
-       
+
 def test_suite():
     return TestSuite((makeSuite(TestPermissionWidget),))
 
 if __name__=='__main__':
     main(defaultTest='test_suite')
-