[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser/tests - test_directives.py:1.14 test_fileresource.py:1.5 test_globalbrowsermenuservice.py:1.9 test_globalbrowsermenuservicedirectives.py:1.4 test_icondirective.py:1.4 test_resources.py:1.5 testi18nfileresource.py:1.4

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


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

Modified Files:
	test_directives.py test_fileresource.py 
	test_globalbrowsermenuservice.py 
	test_globalbrowsermenuservicedirectives.py 
	test_icondirective.py test_resources.py 
	testi18nfileresource.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/publisher/browser/tests/test_directives.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_directives.py:1.13	Fri Apr 11 18:15:47 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_directives.py	Thu May  1 15:35:28 2003
@@ -20,7 +20,7 @@
 
 from zope.configuration.xmlconfig import xmlconfig, XMLConfig
 from zope.configuration.exceptions import ConfigurationError
-from zope.component.tests.views import IC, V1, VZMI, R1, RZMI
+from zope.component.tests.views import IC, V1, VZMI
 from zope.component import getView, queryView, queryResource
 from zope.component import getDefaultViewName, getResource
 from zope.app.services.servicenames import Permissions


=== Zope3/src/zope/app/publisher/browser/tests/test_fileresource.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_fileresource.py:1.4	Mon Dec 30 21:52:03 2002
+++ Zope3/src/zope/app/publisher/browser/tests/test_fileresource.py	Thu May  1 15:35:28 2003
@@ -19,14 +19,13 @@
 
 import os
 
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
 
-from zope.security.checker import CheckerPublic, NamesChecker
+from zope.security.checker import NamesChecker
 
 from zope.exceptions import NotFoundError
 
 from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.component.resource import provideResource
 from zope.component.adapter import provideAdapter
 from zope.proxy.introspection import removeAllProxies
 


=== Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservice.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservice.py:1.8	Fri Apr 11 18:15:47 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservice.py	Thu May  1 15:35:28 2003
@@ -18,7 +18,7 @@
 $Id$
 """
 
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
 from zope.publisher.interfaces.browser import IBrowserPublisher
 from zope.exceptions import Forbidden, Unauthorized, DuplicationError
 from zope.interface import Interface
@@ -29,8 +29,7 @@
 from zope.app.services.servicenames import Permissions
 from zope.app.security.registries.permissionregistry import permissionRegistry
 from zope.app.interfaces.security import IPermissionService
-from zope.security.management import newSecurityManager
-from zope.security.management import noSecurityManager, system_user
+from zope.security.management import newSecurityManager, system_user
 
 class I1(Interface): pass
 class I11(I1): pass


=== Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservicedirectives.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservicedirectives.py:1.3	Fri Apr 11 18:15:47 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservicedirectives.py	Thu May  1 15:35:28 2003
@@ -19,10 +19,9 @@
 """
 
 from StringIO import StringIO
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
 
 from zope.configuration.xmlconfig import xmlconfig, XMLConfig
-from zope.publisher.interfaces.browser import IBrowserPublisher
 from zope.publisher.browser import TestRequest
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.app.publisher.browser.globalbrowsermenuservice \


=== Zope3/src/zope/app/publisher/browser/tests/test_icondirective.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_icondirective.py:1.3	Tue Apr 15 08:24:33 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_icondirective.py	Thu May  1 15:35:28 2003
@@ -28,7 +28,6 @@
 from zope.component.tests.views import IC
 from zope.publisher.interfaces.browser import IBrowserPresentation
 from zope.component import queryView, getView, getResource
-from zope.security.proxy import ProxyFactory
 from zope.configuration.exceptions import ConfigurationError
 import zope.configuration
 


=== Zope3/src/zope/app/publisher/browser/tests/test_resources.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_resources.py:1.4	Sat Jan 25 08:19:27 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_resources.py	Thu May  1 15:35:28 2003
@@ -17,7 +17,7 @@
 $Id$
 """
 
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
 
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.component.resource import provideResource


=== Zope3/src/zope/app/publisher/browser/tests/testi18nfileresource.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/publisher/browser/tests/testi18nfileresource.py:1.3	Mon Dec 30 21:52:03 2002
+++ Zope3/src/zope/app/publisher/browser/tests/testi18nfileresource.py	Thu May  1 15:35:28 2003
@@ -17,14 +17,13 @@
 $Id$
 """
 
-from unittest import TestSuite, main, makeSuite
+from unittest import main, makeSuite
 
 import os
 
 from zope.exceptions import NotFoundError
 
 from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.component.resource import provideResource
 from zope.component.adapter import provideAdapter
 
 from zope.i18n.interfaces import IUserPreferredCharsets
@@ -37,7 +36,7 @@
 
 from zope.app.publisher.browser.i18nfileresource import I18nFileResource
 from zope.app.publisher.browser.i18nfileresource import I18nFileResourceFactory
-from zope.app.publisher.fileresource import File, Image
+from zope.app.publisher.fileresource import File
 import zope.app.publisher.browser.tests as p
 
 from zope.app.component.metaconfigure import \