[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZMI/tests - testZMIViewUtility.py:1.4

Steve Alexander steve@cat-box.net
Mon, 28 Oct 2002 06:31:58 -0500


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

Modified Files:
	testZMIViewUtility.py 
Log Message:
removed extraneous imports.
Tidied up some code formatting.


=== Zope3/lib/python/Zope/App/ZMI/tests/testZMIViewUtility.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/ZMI/tests/testZMIViewUtility.py:1.3	Tue Jun 18 15:34:58 2002
+++ Zope3/lib/python/Zope/App/ZMI/tests/testZMIViewUtility.py	Mon Oct 28 06:31:58 2002
@@ -16,7 +16,7 @@
 $Id$
 """
 
-import unittest, sys
+import unittest
 from Interface import Interface
 
 from Zope.ComponentArchitecture import getService, getServiceManager
@@ -26,9 +26,7 @@
 from Zope.Publisher.Browser.IBrowserView import IBrowserView
 from Zope.Publisher.Browser.IBrowserPresentation import IBrowserPresentation
 from Zope.App.ZopePublication.Traversers import TestTraverser
-from Zope.Security.SecurityManagement import setSecurityPolicy
 from Zope.Security.SecurityManagement import newSecurityManager
-from Zope.Exceptions import Unauthorized
 from Zope.Security.Checker import defineChecker, NamesChecker, CheckerPublic
 from Zope.Security.Proxy import ProxyFactory
 from Zope.App.Publisher.Browser.IBrowserMenuService \
@@ -57,7 +55,7 @@
 ob.a2 = C()
 ob.a2.a3 = C()
 ob.abad = C()
-ob.abad.bad=1
+ob.abad.bad = 1
 
 class V:
     __implements__ = IBrowserView
@@ -74,8 +72,8 @@
 
     def setUp(self):
         PlacefulSetup.setUp(self)
-        defineService=getServiceManager(None).defineService
-        provideService=getServiceManager(None).provideService
+        defineService = getServiceManager(None).defineService
+        provideService = getServiceManager(None).provideService
 
 
         defineService('BrowserMenu', IBrowserMenuService)
@@ -105,7 +103,7 @@
         return ''
         
 def test_suite():
-    loader=unittest.TestLoader()
+    loader = unittest.TestLoader()
     return loader.loadTestsFromTestCase(Test)
 
 if __name__=='__main__':