[Zope3-checkins] CVS: Zope3/src/zope/app/startup/tests - test_registerrequestfactory.py:1.1.2.3 test_registerservertype.py:1.1.2.3 test_requestfactoryregistry.py:1.1.2.2 test_servertyperegistry.py:1.1.2.2 test_simpleregistry.py:1.1.2.2

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


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

Modified Files:
      Tag: NameGeddon-branch
	test_registerrequestfactory.py test_registerservertype.py 
	test_requestfactoryregistry.py test_servertyperegistry.py 
	test_simpleregistry.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/startup/tests/test_registerrequestfactory.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/startup/tests/test_registerrequestfactory.py:1.1.2.2	Tue Dec 24 07:51:21 2002
+++ Zope3/src/zope/app/startup/tests/test_registerrequestfactory.py	Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 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.
-# 
+#
 ##############################################################################
 """
 
@@ -36,7 +36,7 @@
                    />''',
             '''<test:registerRequestFactory
                    name="BrowserRequestFactory"
-                   publication= 
+                   publication=
              "zope.app.publication.browser.BrowserPublication"
                    request = "zope.publisher.browser.BrowserRequest" />
             '''


=== Zope3/src/zope/app/startup/tests/test_registerservertype.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/startup/tests/test_registerservertype.py:1.1.2.2	Tue Dec 24 07:51:21 2002
+++ Zope3/src/zope/app/startup/tests/test_registerservertype.py	Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 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.
-# 
+#
 ##############################################################################
 """terServerType.py,v 1.1.2.2 2002/04/02 02:20:40 srichter Exp $
 """
@@ -30,7 +30,7 @@
                    attributes="name publication request"
                    handler="zope.app.startup.metaconfigure.registerServerType"
                    />''',
-            '''<test:registerServerType 
+            '''<test:registerServerType
                  name = "Browser"
                  factory =
                  "zope.server.http.publisherhttpserver.PublisherHTTPServer"
@@ -61,4 +61,3 @@
 
 if __name__=='__main__':
     unittest.TextTestRunner().run( test_suite() )
-


=== Zope3/src/zope/app/startup/tests/test_requestfactoryregistry.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/startup/tests/test_requestfactoryregistry.py:1.1.2.1	Mon Dec 23 14:32:31 2002
+++ Zope3/src/zope/app/startup/tests/test_requestfactoryregistry.py	Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 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.
-# 
+#
 ##############################################################################
 """
 I do not think it is necessary to do the entire SimpleRegistry tests again.
@@ -40,7 +40,7 @@
 
         registerRequestFactory('factory', factory)
         self.assertEqual(getRequestFactory('factory'), factory)
-        
+
 
 def test_suite():
     loader = unittest.TestLoader()
@@ -49,4 +49,3 @@
 
 if __name__=='__main__':
     unittest.TextTestRunner().run( test_suite() )
-


=== Zope3/src/zope/app/startup/tests/test_servertyperegistry.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/startup/tests/test_servertyperegistry.py:1.1.2.1	Mon Dec 23 14:32:31 2002
+++ Zope3/src/zope/app/startup/tests/test_servertyperegistry.py	Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 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.
-# 
+#
 ##############################################################################
 """
 I do not think it is necessary to do the entire SimpleRegistry tests again.
@@ -40,7 +40,7 @@
 
         registerServerType('server', server)
         self.assertEqual(getServerType('server'), server)
-        
+
 
 def test_suite():
     loader = unittest.TestLoader()
@@ -49,4 +49,3 @@
 
 if __name__=='__main__':
     unittest.TextTestRunner().run( test_suite() )
-


=== Zope3/src/zope/app/startup/tests/test_simpleregistry.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/startup/tests/test_simpleregistry.py:1.1.2.1	Mon Dec 23 14:32:31 2002
+++ Zope3/src/zope/app/startup/tests/test_simpleregistry.py	Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 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.
-# 
+#
 ##############################################################################
 """
 
@@ -47,7 +47,7 @@
         obj1 = Object1()
 
         self.assertEqual(registry.objects, {})
-        
+
         registry.register('obj1', obj1)
         self.assertEqual(registry.objects, {'obj1': obj1})
 
@@ -62,7 +62,7 @@
 
         self.failUnlessRaises(ZopeIllegalInterfaceError,
                               registry.register, 'obj2', obj2)
-        
+
 
     def testDuplicateEntry(self):
 
@@ -72,7 +72,7 @@
 
         self.failUnlessRaises(ZopeDuplicateRegistryEntryError,
                               registry.register, 'obj1', obj1)
-        
+
 
     def testGet(self):
 
@@ -86,7 +86,7 @@
 
         # Requesting an object that does not exist
         self.assertEqual(registry.get('obj3'), None)
-        
+
 
 
 def test_suite():
@@ -96,4 +96,3 @@
 
 if __name__=='__main__':
     unittest.TextTestRunner().run( test_suite() )
-