[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testNamespaceTrversal.py:1.6

Barry Warsaw barry@wooz.org
Fri, 20 Dec 2002 14:35:15 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv11652/lib/python/Zope/App/Traversing/tests

Modified Files:
	testNamespaceTrversal.py 
Log Message:
test module cleanups:

- no docstrings in test methods (convert to comments)
- whitespace normalization
- other minor cleanups


=== Zope3/lib/python/Zope/App/Traversing/tests/testNamespaceTrversal.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testNamespaceTrversal.py:1.5	Wed Jul 17 12:54:20 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testNamespaceTrversal.py	Fri Dec 20 14:34:44 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
-# 
+#
 ##############################################################################
 """
 
@@ -23,7 +23,7 @@
 class C:
     a = 1
     def __getitem__(self, key): return key+'value'
-    
+
 c=C()
 
 
@@ -37,7 +37,6 @@
         provideNamespaceHandler('item', item)
         provideNamespaceHandler('skin', skin)
 
-
     def testAttr(self):
         from Zope.App.Traversing.Traverser import Traverser
         traverser = Traverser(c)
@@ -51,27 +50,26 @@
         self.assertEqual(v, 'avalue')
 
     def testSideEffectsContextDetail(self):
-        """Check to make sure that when we traverse something in context,
-        that we get the right context for the result."""
+        # Check to make sure that when we traverse something in context,
+        # that we get the right context for the result.
         from Zope.Proxy.ContextWrapper \
              import ContextWrapper, getWrapperContainer
         from Zope.App.Traversing.Traverser import Traverser
         from Zope.Publisher.Browser.BrowserRequest import TestRequest
-        
+
         c1 = C()
         c2 = C()
         c2c1 = ContextWrapper(c2, c1)
-        
+
         traverser = Traverser(c2c1)
         v = traverser.traverse('++skin++ZopeTop', request=TestRequest())
         self.assertEqual(v, c2)
         self.failUnless(getWrapperContainer(v) is c2c1)
-        
-        
-        
+
 
 def test_suite():
     return makeSuite(Test)
 
-if __name__=='__main__':
+
+if __name__ == '__main__':
     main(defaultTest='test_suite')