[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests - test_committer.py:1.14
Guido van Rossum
guido@python.org
Thu, 5 Jun 2003 14:58:47 -0400
Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv14247
Modified Files:
test_committer.py
Log Message:
test_create_object_factory_file() was lucky; the Default adapter's
setBody() doesn't do anything.
=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.13 Thu Jun 5 14:51:07 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py Thu Jun 5 14:58:46 2003
@@ -197,12 +197,14 @@
container, "Foo", 42)
def test_create_object_factory_file(self):
+ provideSynchronizer(dict, DictAdapter)
container = {}
- entry = {"flag": "added", "factory": "__builtin__.int"}
+ entry = {"flag": "added", "factory": "__builtin__.dict"}
tfn = os.path.join(self.tempdir(), "foo")
- self.writefile(dumps(0), tfn)
+ data = {"hello": "world"}
+ self.writefile(dumps(data), tfn)
committer.create_object(container, "foo", entry, tfn)
- self.assertEqual(container, {"foo": 0})
+ self.assertEqual(container, {"foo": data})
def test_create_object_factory_directory(self):
provideSynchronizer(PretendContainer, DirectoryAdapter)