[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests - test_sqlcommand.py:1.1.2.2
Jim Fulton
jim@zope.com
Tue, 24 Dec 2002 07:51:45 -0500
Update of /cvs-repository/Zope3/src/zope/app/rdb/tests
In directory cvs.zope.org:/tmp/cvs-serv1158/src/zope/app/rdb/tests
Modified Files:
Tag: NameGeddon-branch
test_sqlcommand.py
Log Message:
Searched for and changed over 1200 references to Zope.something.
Most of these were either comments, doc strings, or permission ids.
Many were imports or ids in zcml. (much zcml fixup is still needed.
=== Zope3/src/zope/app/rdb/tests/test_sqlcommand.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/rdb/tests/test_sqlcommand.py:1.1.2.1 Mon Dec 23 14:32:12 2002
+++ Zope3/src/zope/app/rdb/tests/test_sqlcommand.py Tue Dec 24 07:51:14 2002
@@ -21,7 +21,7 @@
from zope.app.interfaces.rdb import IConnectionService
from zope.app.interfaces.rdb import IZopeConnection
from zope.app.interfaces.rdb import IZopeCursor
-from Zope.App.ComponentArchitecture import NextService
+from zope.app.component import nextservice
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.component.service import \
serviceManager as sm
@@ -67,14 +67,14 @@
PlacelessSetup.setUp(self)
sm.defineService('SQLDatabaseConnections', IConnectionService)
sm.provideService('SQLDatabaseConnections', ConnectionServiceStub())
- self._old_getNextServiceManager = NextService.getNextServiceManager
- NextService.getNextServiceManager = getNextServiceManager
+ self._old_getNextServiceManager = nextservice.getNextServiceManager
+ nextservice.getNextServiceManager = getNextServiceManager
def tearDown(self):
- NextService.getNextServiceManager = self._old_getNextServiceManager
+ nextservice.getNextServiceManager = self._old_getNextServicemanager
- def testSimpleSQLCommand(self):
+ def testsimp(self):
command = SQLCommand("my_connection", "SELECT id FROM Table")
result = command()
self.assertEqual(result.columns, ('id',))