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

Jim Fulton jim at zope.com
Fri Sep 12 15:15:56 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	test_committer.py 
Log Message:
Can't have the tests passing, can we?

=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.16.6.3 => 1.16.6.4 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.16.6.3	Fri Sep 12 12:30:55 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py	Fri Sep 12 15:15:25 2003
@@ -56,7 +56,7 @@
     def __init__(self):
         self.holding = {}
 
-    def setObject(self, name, value):
+    def __setitem__(self, name, value):
         name = name.lower()
         if name in self.holding:
             raise KeyError
@@ -254,10 +254,10 @@
         self.parent = PretendContainer()
         self.child = PretendContainer()
         self.grandchild = PretendContainer()
-        self.parent.setObject("child", self.child)
-        self.child.setObject("grandchild", self.grandchild)
+        self.parent["child"] = self.child
+        self.child["grandchild"] = self.grandchild
         self.foo = ["hello", "world"]
-        self.child.setObject("foo", self.foo)
+        self.child["foo"] = self.foo
 
         # Set up fixed part of filesystem tree
         self.parentdir = self.tempdir()
@@ -360,7 +360,7 @@
     def test_file_added_twice(self):
         # Adding a file in both places is an error
         bar = ["this", "is", "bar"]
-        self.child.setObject("bar", bar)
+        self.child["bar"] = bar
         barfile = os.path.join(self.childdir, "bar")
         self.writefile(dumps(bar), barfile, "wb")
         barentry = self.getentry(barfile)




More information about the Zope3-Checkins mailing list