[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests - test_committer.py:1.24.4.1

Philipp von Weitershausen philikon at philikon.de
Sun Feb 8 09:37:24 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv17770/fssync/tests

Modified Files:
      Tag: philikon-movecontent-branch
	test_committer.py 
Log Message:
Can't use File from zope.app.content anymore. Use the Sample object, which
is being used in other tests, instead.


=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.24 => 1.24.4.1 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.24	Wed Jan 14 16:50:30 2004
+++ Zope3/src/zope/app/fssync/tests/test_committer.py	Sun Feb  8 09:37:24 2004
@@ -32,7 +32,7 @@
 from zope.fssync.tests.mockmetadata import MockMetadata
 from zope.fssync.tests.tempfiles import TempFiles
 
-from zope.app.content.fssync import DirectoryAdapter
+from zope.fssync.server.entryadapter import DirectoryAdapter
 from zope.app.interfaces.container import IContainer
 from zope.app.interfaces.file import IFileFactory, IDirectoryFactory
 from zope.app.interfaces.traversing import IContainmentRoot
@@ -163,8 +163,7 @@
         shutil.rmtree(self.location)
 
     def test_toFS(self):
-        from zope.app.content.file import File
-        obj = File(contentType='text/plain')
+        obj = Sample()
         syncer.toFS(obj, "foo", self.location)
 
     def test_getSerializer(self):




More information about the Zope3-Checkins mailing list