[Zope3-checkins] CVS: Zope3/src/zope/app/security/tests - test_basicauthadapter.py:1.3 test_loginpassword.py:1.3 test_protectclass.py:1.3 test_protectsubclass.py:1.3 test_settings.py:1.3 test_zopepolicy.py:1.9

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


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

Modified Files:
	test_basicauthadapter.py test_loginpassword.py 
	test_protectclass.py test_protectsubclass.py test_settings.py 
	test_zopepolicy.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/app/security/tests/test_basicauthadapter.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/tests/test_basicauthadapter.py:1.2	Wed Dec 25 09:13:18 2002
+++ Zope3/src/zope/app/security/tests/test_basicauthadapter.py	Thu May  1 15:35:34 2003
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-import unittest, sys
+import unittest
 
 from zope.app.security.basicauthadapter import BasicAuthAdapter
 


=== Zope3/src/zope/app/security/tests/test_loginpassword.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/tests/test_loginpassword.py:1.2	Wed Dec 25 09:13:18 2002
+++ Zope3/src/zope/app/security/tests/test_loginpassword.py	Thu May  1 15:35:34 2003
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-import unittest, sys
+import unittest
 
 from zope.app.security.loginpassword import LoginPassword
 


=== Zope3/src/zope/app/security/tests/test_protectclass.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/tests/test_protectclass.py:1.2	Wed Dec 25 09:13:18 2002
+++ Zope3/src/zope/app/security/tests/test_protectclass.py	Thu May  1 15:35:34 2003
@@ -56,7 +56,6 @@
         "Verify that class, instance, and methods have expected permissions."
 
         from zope.security.checker import selectChecker
-        from zope.exceptions import Forbidden
 
         checker = selectChecker(TestModule.test_instance)
         self.assertEqual(checker.permission_id('m1'), (m1P or None))
@@ -82,7 +81,6 @@
         "Verify that class, instance, and methods have expected permissions."
 
         from zope.security.checker import selectChecker
-        from zope.exceptions import Forbidden
 
         checker = selectChecker(TestModule.test_instance)
         self.assertEqual(checker.setattr_permission_id('m1'), (m1P or None))


=== Zope3/src/zope/app/security/tests/test_protectsubclass.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/tests/test_protectsubclass.py:1.2	Wed Dec 25 09:13:18 2002
+++ Zope3/src/zope/app/security/tests/test_protectsubclass.py	Thu May  1 15:35:34 2003
@@ -17,7 +17,7 @@
 $Id$
 """
 
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
 from zope.testing.cleanup import CleanUp # Base class w registry cleanup
 from zope.app.security.protectclass import protectName
 from zope.app.security.registries.permissionregistry import permissionRegistry


=== Zope3/src/zope/app/security/tests/test_settings.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/tests/test_settings.py:1.2	Wed Dec 25 09:13:18 2002
+++ Zope3/src/zope/app/security/tests/test_settings.py	Thu May  1 15:35:34 2003
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-import unittest, sys
+import unittest
 
 from zope.app.security.settings import Allow
 from cPickle import Pickler, Unpickler


=== Zope3/src/zope/app/security/tests/test_zopepolicy.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/security/tests/test_zopepolicy.py:1.8	Thu Mar 13 13:49:09 2003
+++ Zope3/src/zope/app/security/tests/test_zopepolicy.py	Thu May  1 15:35:34 2003
@@ -52,7 +52,6 @@
 from zope.app.services.tests.placefulsetup\
            import PlacefulSetup
 from zope.app.security.zopepolicy import permissionsOfPrincipal
-from zope.app.interfaces.services.service import ISimpleService
 
 class Context:
     def __init__(self, user, stack=[]):