[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_directives.py:1.3 test_interfaceservice.py:1.4 test_nextservice.py:1.5 test_servicedirective.py:1.4 test_servicemanagercontainer.py:1.5
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 1 May 2003 15:36:09 -0400
Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv30407/zope/app/component/tests
Modified Files:
test_directives.py test_interfaceservice.py
test_nextservice.py test_servicedirective.py
test_servicemanagercontainer.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/component/tests/test_directives.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.2 Wed Dec 25 09:12:46 2002
+++ Zope3/src/zope/app/component/tests/test_directives.py Thu May 1 15:35:08 2003
@@ -13,8 +13,6 @@
##############################################################################
import unittest
-import sys
-import os
from cStringIO import StringIO
from zope.configuration.xmlconfig import xmlconfig, XMLConfig
@@ -25,7 +23,7 @@
import zope.app.component
from zope.component.exceptions import ComponentLookupError
-from zope.component import getView, queryView, getResource, queryResource
+from zope.component import getView, queryView, queryResource
from zope.component import createObject
from zope.component import getDefaultViewName
=== Zope3/src/zope/app/component/tests/test_interfaceservice.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/component/tests/test_interfaceservice.py:1.3 Fri Apr 25 15:28:45 2003
+++ Zope3/src/zope/app/component/tests/test_interfaceservice.py Thu May 1 15:35:08 2003
@@ -17,12 +17,8 @@
from zope.app.interfaces.component.globalinterfaceservice \
import IGlobalInterfaceService
from zope.app.component.globalinterfaceservice import InterfaceService
-from zope.app.component.globalinterfaceservice import IInterfaceService
from zope.interface.verify import verifyObject
from zope.component.exceptions import ComponentLookupError
-from zope.component.service \
- import serviceManager, defineService
-
class B(Interface):
pass
=== Zope3/src/zope/app/component/tests/test_nextservice.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/component/tests/test_nextservice.py:1.4 Tue Mar 11 16:08:40 2003
+++ Zope3/src/zope/app/component/tests/test_nextservice.py Thu May 1 15:35:08 2003
@@ -15,7 +15,7 @@
$Id$
"""
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
from zope.app.component.hooks import getServiceManager_hook
from zope.app.component.nextservice import getNextServiceManager
from zope.app.interfaces.services.service import IServiceManagerContainer
@@ -23,7 +23,6 @@
from zope.component.exceptions import ComponentLookupError
from zope.component.interfaces import IServiceService
from zope.component.service import serviceManager
-from zope.interface import Interface
from zope.proxy.context import Wrapper
=== Zope3/src/zope/app/component/tests/test_servicedirective.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/component/tests/test_servicedirective.py:1.3 Mon Dec 30 22:35:07 2002
+++ Zope3/src/zope/app/component/tests/test_servicedirective.py Thu May 1 15:35:08 2003
@@ -13,21 +13,13 @@
##############################################################################
import unittest
-import sys
-import os
from cStringIO import StringIO
from zope.exceptions import Forbidden, Unauthorized
from zope.configuration.xmlconfig import testxmlconfig as xmlconfig, XMLConfig
-from zope.configuration.exceptions import ConfigurationError
-
-from zope.security.proxy \
- import getTestProxyItems, getObject as proxiedObject, ProxyFactory
-
+from zope.security.proxy import ProxyFactory
from zope.component.exceptions import ComponentLookupError
-
-from zope.app.component.tests.service import IFooService, FooService
import zope.app.component
from zope.component import getService
=== Zope3/src/zope/app/component/tests/test_servicemanagercontainer.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/component/tests/test_servicemanagercontainer.py:1.4 Tue Feb 4 05:25:44 2003
+++ Zope3/src/zope/app/component/tests/test_servicemanagercontainer.py Thu May 1 15:35:08 2003
@@ -17,10 +17,9 @@
$Id$
"""
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
from zope.component.interfaces import IServiceService
-from zope.app.interfaces.services.service \
- import IServiceManagerContainer
+from zope.app.interfaces.services.service import IServiceManagerContainer
from zope.component.exceptions import ComponentLookupError
from zope.interface.verify import verifyObject
from zope.proxy.context import getbaseobject