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

Fred L. Drake, Jr. fred at zope.com
Wed Jan 14 13:33:33 EST 2004


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

Modified Files:
	test_committer.py 
Log Message:
add test for z.a.fssync.syncer.toFS()  (no previous test called this
at all)


=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.22 => 1.23 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.22	Tue Jan 13 17:28:47 2004
+++ Zope3/src/zope/app/fssync/tests/test_committer.py	Wed Jan 14 13:33:32 2004
@@ -18,6 +18,7 @@
 
 import os
 import shutil
+import tempfile
 import unittest
 
 from zope.component.service import serviceManager
@@ -151,6 +152,20 @@
 
 
 class TestSyncerModule(TestBase):
+
+    def setUp(self):
+        super(TestSyncerModule, self).setUp()
+        self.location = tempfile.mktemp()
+        os.mkdir(self.location)
+
+    def tearDown(self):
+        super(TestSyncerModule, self).tearDown()
+        shutil.rmtree(self.location)
+
+    def test_toFS(self):
+        from zope.app.content.file import File
+        obj = File(contentType='text/plain')
+        syncer.toFS(obj, "foo", self.location)
 
     def test_getSerializer(self):
         obj = Sample()




More information about the Zope3-Checkins mailing list