[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests -
test_committer.py:1.20
Fred L. Drake, Jr.
fred at zope.com
Tue Jan 13 11:59:32 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv25228/zope/app/fssync/tests
Modified Files:
test_committer.py
Log Message:
rename zope.app.fssync.classes.Default to DefaultFileAdapter
=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.19 Thu Nov 27 08:59:19 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py Tue Jan 13 11:59:31 2004
@@ -42,7 +42,7 @@
from zope.app.fssync import committer # The module
from zope.app.fssync.committer import Checker, Committer, SynchronizationError
from zope.app.fssync.fsregistry import provideSynchronizer, fsRegistry
-from zope.app.fssync.classes import Default
+from zope.app.fssync.classes import DefaultFileAdpater
class Sample(object):
@@ -98,7 +98,7 @@
implements(IContainmentRoot)
-class DictAdapter(Default):
+class DictAdapter(DefaultFileAdpater):
def setBody(self, body):
old = self.context
@@ -122,7 +122,7 @@
# Set up FSRegistryService
serviceManager.defineService("FSRegistryService", IGlobalFSSyncService)
serviceManager.provideService("FSRegistryService", fsRegistry)
- provideSynchronizer(None, Default)
+ provideSynchronizer(None, DefaultFileAdpater)
# Set up temporary name administration
TempFiles.setUp(self)
@@ -155,7 +155,7 @@
def test_get_adapter(self):
obj = Sample()
adapter = committer.get_adapter(obj)
- self.assertEqual(adapter.__class__, Default)
+ self.assertEqual(adapter.__class__, DefaultFileAdpater)
def test_read_file(self):
data = "12345\rabcde\n12345\r\nabcde"
More information about the Zope3-Checkins
mailing list