[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests - test_committer.py:1.2
Guido van Rossum
guido@python.org
Wed, 28 May 2003 09:51:49 -0400
Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv26884
Modified Files:
test_committer.py
Log Message:
Use MockMetadata class.
=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.1 Tue May 27 15:41:53 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py Wed May 28 09:51:49 2003
@@ -28,6 +28,7 @@
from zope.xmlpickle import loads, dumps
from zope.fssync import fsutil
+from zope.fssync.tests.mockmetadata import MockMetadata
from zope.app.interfaces.container import IContainer
from zope.app.interfaces.file import IFileFactory
@@ -98,8 +99,8 @@
# Instance initialization
self.tempfiles = []
- self.com = Committer()
- self.metadata = self.com.metadata
+ self.metadata = MockMetadata()
+ self.com = Committer(self.metadata)
self.getentry = self.metadata.getentry
self.getnames = self.metadata.getnames