[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests -
test_committer.py:1.17.6.1
Jim Fulton
cvs-admin at zope.org
Tue Nov 18 17:26:59 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv19243/src/zope/app/fssync/tests
Modified Files:
Tag: adaptergeddon-branch
test_committer.py
Log Message:
Implemented local presentation services.
=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.17 => 1.17.6.1 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.17 Sun Sep 21 13:32:11 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py Tue Nov 18 17:26:28 2003
@@ -21,7 +21,7 @@
import unittest
from zope.component.service import serviceManager
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
from zope.exceptions import NotFoundError
from zope.interface import implements
@@ -214,7 +214,7 @@
self.assertEqual(container.items(), [("foo", ["hello", "world"])])
def test_create_object_ifilefactory(self):
- provideAdapter(IContainer, IFileFactory, file_factory_maker)
+ ztapi.provideAdapter(IContainer, IFileFactory, file_factory_maker)
container = PretendContainer()
entry = {"flag": "added"}
data = ["hello", "world"]
@@ -224,7 +224,7 @@
self.assertEqual(container.holding, {"foo": ["hello", "world"]})
def test_create_object_idirectoryfactory(self):
- provideAdapter(IContainer, IDirectoryFactory, directory_factory_maker)
+ ztapi.provideAdapter(IContainer, IDirectoryFactory, directory_factory_maker)
container = PretendContainer()
entry = {"flag": "added"}
tfn = os.path.join(self.tempdir(), "foo")
@@ -242,8 +242,9 @@
# Set up environment
provideSynchronizer(PretendContainer, DirectoryAdapter)
provideSynchronizer(dict, DictAdapter)
- provideAdapter(IContainer, IFileFactory, file_factory_maker)
- provideAdapter(IContainer, IDirectoryFactory, directory_factory_maker)
+ ztapi.provideAdapter(IContainer, IFileFactory, file_factory_maker)
+ ztapi.provideAdapter(IContainer, IDirectoryFactory,
+ directory_factory_maker)
# Set up fixed part of object tree
self.parent = PretendContainer()
More information about the Zope3-Checkins
mailing list