[Zope3-checkins] CVS: Zope3/src/zope/security/tests - test_builtins.py:1.2 test_management.py:1.2 test_manager.py:1.2 test_proxy.py:1.4

Martijn Faassen m.faassen@vet.uu.nl
Thu, 1 May 2003 15:36:19 -0400


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

Modified Files:
	test_builtins.py test_management.py test_manager.py 
	test_proxy.py 
Log Message:
Importgeddon part the second. Removed unused imports throughout the
source tree. This should have taken care of most unused imports
in Zope 3. :)


=== Zope3/src/zope/security/tests/test_builtins.py 1.1 => 1.2 ===
--- Zope3/src/zope/security/tests/test_builtins.py:1.1	Mon Dec 30 22:35:15 2002
+++ Zope3/src/zope/security/tests/test_builtins.py	Thu May  1 15:35:47 2003
@@ -17,14 +17,13 @@
 $Id$
 """
 
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import makeSuite, TestCase, main
 from zope.testing.cleanup import CleanUp # Base class w registry cleanup
 
 class Test(CleanUp, TestCase):
 
     def test(self):
         from zope.security.builtins import RestrictedBuiltins
-        from zope.security.proxy import Proxy
         from zope.exceptions import Forbidden
 
         def e(expr):


=== Zope3/src/zope/security/tests/test_management.py 1.1 => 1.2 ===
--- Zope3/src/zope/security/tests/test_management.py:1.1	Mon Dec 30 22:35:15 2002
+++ Zope3/src/zope/security/tests/test_management.py	Thu May  1 15:35:47 2003
@@ -21,7 +21,6 @@
 from zope.interface.verify import verifyObject
 from zope.testing.cleanup import CleanUp
 
-import zope.security.management
 from zope.security.management import noSecurityManager, newSecurityManager
 from zope.security.management import setSecurityPolicy
 
@@ -90,7 +89,6 @@
 
         from zope.security.management import noSecurityManager
         from zope.security.management import getSecurityManager
-        from zope.exceptions import Unauthorized
 
         # test against default policy (paranoid)
         self._setParanoid()


=== Zope3/src/zope/security/tests/test_manager.py 1.1 => 1.2 ===
--- Zope3/src/zope/security/tests/test_manager.py:1.1	Mon Dec 30 22:35:15 2002
+++ Zope3/src/zope/security/tests/test_manager.py	Thu May  1 15:35:47 2003
@@ -21,7 +21,6 @@
 from zope.security.simplepolicies import ParanoidSecurityPolicy
 from zope.security.simplepolicies import PermissiveSecurityPolicy
 from zope.security.context import SecurityContext
-from zope.exceptions import Unauthorized
 
 class DummyExecutable:
 


=== Zope3/src/zope/security/tests/test_proxy.py 1.3 => 1.4 ===
--- Zope3/src/zope/security/tests/test_proxy.py:1.3	Fri Apr 25 15:28:42 2003
+++ Zope3/src/zope/security/tests/test_proxy.py	Thu May  1 15:35:47 2003
@@ -12,7 +12,6 @@
 #
 ##############################################################################
 import unittest
-from zope.exceptions import Forbidden
 from zope.security.proxy import getObject, getChecker, ProxyFactory
 from zope.proxy.proxy import proxy