[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests - test_browserpublication.py:1.9 test_simplecomponenttraverser.py:1.6 test_zopepublication.py:1.10

Albertas Agejevas alga@codeworks.lt
Thu, 13 Mar 2003 13:49:39 -0500


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

Modified Files:
	test_browserpublication.py test_simplecomponenttraverser.py 
	test_zopepublication.py 
Log Message:
An unexpected raid by the Whitespace Police.

Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.



=== Zope3/src/zope/app/publication/tests/test_browserpublication.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/publication/tests/test_browserpublication.py:1.8	Tue Feb 11 21:17:26 2003
+++ Zope3/src/zope/app/publication/tests/test_browserpublication.py	Thu Mar 13 13:49:08 2003
@@ -175,7 +175,7 @@
     def testNativeTraverseNameWrapping(self):
         pub = self.klass(self.db)
         ob = DummyPublished()
-        ob2 = pub.traverseName(self._createRequest('/bruce',pub), ob, 'bruce')
+        ob2 = pub.traverseName(self._createRequest('/bruce', pub), ob, 'bruce')
         self.failUnless(ob2 is not ob)
         self.failUnless(type(ob2) is Proxy)
         ob2 = getObject(ob2)
@@ -191,16 +191,16 @@
                 self.counter = 0
 
             def publishTraverse(self, request, name):
-                self.counter+=1
+                self.counter += 1
                 return self.context[name]
 
-        provideView=getService(None, Views).provideView
+        provideView = getService(None, Views).provideView
         provideView(I1, '_traverse', IBrowserPresentation, [Adapter])
         ob = mydict()
-        ob['bruce'] =  SimpleObject('bruce')
-        ob['bruce2'] =  SimpleObject('bruce2')
+        ob['bruce'] = SimpleObject('bruce')
+        ob['bruce2'] = SimpleObject('bruce2')
         pub = self.klass(self.db)
-        ob2 = pub.traverseName(self._createRequest('/bruce',pub), ob, 'bruce')
+        ob2 = pub.traverseName(self._createRequest('/bruce', pub), ob, 'bruce')
         self.failUnless(type(ob2) is Proxy)
         ob2 = getObject(ob2)
         self.failUnless(type(ob2) in wrapperTypes)
@@ -231,7 +231,6 @@
         unw = removeAllProxies(ob2)
         self.assertEqual(unw.v, 'bruce')
 
-
     # XXX we no longer support path parameters! (At least for now)
     def XXXtestTraverseSkinExtraction(self):
         class I1(Interface): pass
@@ -305,7 +304,6 @@
         app = r.publication.getApplication(r)
         self.assertEqual(app, applicationControllerRoot)
 
-
     def testHEADFuxup(self):
         pub = self.klass(None)
 
@@ -346,9 +344,6 @@
             '\r\n'
             )
 
-        
-        
-        
 
 def test_suite():
     t2 = unittest.makeSuite(BrowserPublicationTests, 'test')
@@ -357,4 +352,4 @@
 
 
 if __name__ == '__main__':
-    unittest.TextTestRunner().run( test_suite() )
+    unittest.TextTestRunner().run(test_suite())


=== Zope3/src/zope/app/publication/tests/test_simplecomponenttraverser.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/publication/tests/test_simplecomponenttraverser.py:1.5	Tue Feb 11 21:17:26 2003
+++ Zope3/src/zope/app/publication/tests/test_simplecomponenttraverser.py	Thu Mar 13 13:49:08 2003
@@ -52,8 +52,8 @@
     def testAttr(self):
         # test container traver
         foo = Container()
-        c   = Container( foo=foo )
-        req = Request( I, '')
+        c   = Container(foo=foo)
+        req = Request(I, '')
 
         T = SimpleComponentTraverser(c, req)
 
@@ -63,8 +63,8 @@
     def testView(self):
         # test getting a view
         foo = Container()
-        c   = Container( foo=foo )
-        req = Request( I, '')
+        c   = Container(foo=foo)
+        req = Request(I, '')
 
         T = SimpleComponentTraverser(c, req)
         getService(None,Views).provideView(None , 'foo', I, [View])


=== Zope3/src/zope/app/publication/tests/test_zopepublication.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/publication/tests/test_zopepublication.py:1.9	Thu Mar 13 11:28:16 2003
+++ Zope3/src/zope/app/publication/tests/test_zopepublication.py	Thu Mar 13 13:49:08 2003
@@ -329,4 +329,4 @@
         ))
 
 if __name__ == '__main__':
-    unittest.TextTestRunner().run( test_suite() )
+    unittest.TextTestRunner().run(test_suite())