[Zope3-checkins] CVS: Zope3/src/zope/app/security/grants/tests - test_annotationprincipalpermissionmanager.py:1.6 test_annotationprincipalrolemanager.py:1.6 test_annotationrolepermissionmanager.py:1.7 test_principalpermissionmanager.py:1.6 test_principalrolemanager.py:1.6 test_rolepermissionmanager.py:1.6
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 1 May 2003 15:36:03 -0400
Update of /cvs-repository/Zope3/src/zope/app/security/grants/tests
In directory cvs.zope.org:/tmp/cvs-serv30407/zope/app/security/grants/tests
Modified Files:
test_annotationprincipalpermissionmanager.py
test_annotationprincipalrolemanager.py
test_annotationrolepermissionmanager.py
test_principalpermissionmanager.py
test_principalrolemanager.py test_rolepermissionmanager.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/grants/tests/test_annotationprincipalpermissionmanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/grants/tests/test_annotationprincipalpermissionmanager.py:1.5 Tue Feb 11 21:17:32 2003
+++ Zope3/src/zope/app/security/grants/tests/test_annotationprincipalpermissionmanager.py Thu May 1 15:35:32 2003
@@ -13,7 +13,6 @@
##############################################################################
"""Test handler for AnnotationPrincipalPermissionManager module."""
-import sys
import unittest
from zope.app.interfaces.annotation import IAttributeAnnotatable
=== Zope3/src/zope/app/security/grants/tests/test_annotationprincipalrolemanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/grants/tests/test_annotationprincipalrolemanager.py:1.5 Tue Feb 11 21:17:32 2003
+++ Zope3/src/zope/app/security/grants/tests/test_annotationprincipalrolemanager.py Thu May 1 15:35:32 2003
@@ -13,7 +13,6 @@
##############################################################################
"""Test handler for PrincipalRoleManager module."""
-import sys
import unittest
from zope.app.interfaces.annotation import IAttributeAnnotatable
=== Zope3/src/zope/app/security/grants/tests/test_annotationrolepermissionmanager.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/security/grants/tests/test_annotationrolepermissionmanager.py:1.6 Thu Mar 13 13:49:09 2003
+++ Zope3/src/zope/app/security/grants/tests/test_annotationrolepermissionmanager.py Thu May 1 15:35:32 2003
@@ -16,18 +16,16 @@
from zope.app.interfaces.annotation import IAttributeAnnotatable
from zope.app.interfaces.annotation import IAnnotations
from zope.app.attributeannotations import AttributeAnnotations
-from zope.component \
- import getServiceManager, getService
+from zope.component import getServiceManager, getService
from zope.app.services.servicenames import Permissions, Adapters
from zope.app.interfaces.security import IRoleService
from zope.app.interfaces.security import IPermissionService
from zope.app.security.registries.roleregistry import roleRegistry
from zope.app.security.registries.permissionregistry import permissionRegistry
from zope.app.security.settings import Allow, Deny
-from zope.app.services.tests.placefulsetup \
- import PlacefulSetup
+from zope.app.services.tests.placefulsetup import PlacefulSetup
-import unittest, sys
+import unittest
class Manageable:
__implements__ = IAttributeAnnotatable
=== Zope3/src/zope/app/security/grants/tests/test_principalpermissionmanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/grants/tests/test_principalpermissionmanager.py:1.5 Tue Feb 11 21:17:32 2003
+++ Zope3/src/zope/app/security/grants/tests/test_principalpermissionmanager.py Thu May 1 15:35:32 2003
@@ -13,7 +13,6 @@
##############################################################################
"""Test handler for PrincipalPermissionManager module."""
-import sys
import unittest
from zope.component.service import serviceManager as services
=== Zope3/src/zope/app/security/grants/tests/test_principalrolemanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/grants/tests/test_principalrolemanager.py:1.5 Tue Feb 11 21:17:32 2003
+++ Zope3/src/zope/app/security/grants/tests/test_principalrolemanager.py Thu May 1 15:35:32 2003
@@ -13,7 +13,6 @@
##############################################################################
"""Test handler for PrincipalRoleManager module."""
-import sys
import unittest
from zope.component.service import serviceManager as services
=== Zope3/src/zope/app/security/grants/tests/test_rolepermissionmanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/grants/tests/test_rolepermissionmanager.py:1.5 Tue Feb 11 21:17:32 2003
+++ Zope3/src/zope/app/security/grants/tests/test_rolepermissionmanager.py Thu May 1 15:35:32 2003
@@ -13,7 +13,6 @@
##############################################################################
"""Test handler for RolePermissionManager module."""
-import sys
import unittest
from zope.component.service import serviceManager as services
@@ -28,8 +27,7 @@
import roleRegistry as rregistry
from zope.app.security.grants.rolepermission \
import rolePermissionManager as manager
-from zope.app.security.settings \
- import Allow, Deny, Unset
+from zope.app.security.settings import Allow, Deny
from zope.testing.cleanup import CleanUp # Base class w registry cleanup
class Test(CleanUp, unittest.TestCase):