[Zope-Checkins] CVS: Zope3/lib/python/Zope/ObjectHub/tests - testObjectHub.py:1.1.2.2

Steve Alexander steve@cat-box.net
Sat, 23 Feb 2002 09:23:08 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ObjectHub/tests
In directory cvs.zope.org:/tmp/cvs-serv32330

Modified Files:
      Tag: Zope-3x-branch
	testObjectHub.py 
Log Message:
Improved tests.



=== Zope3/lib/python/Zope/ObjectHub/tests/testObjectHub.py 1.1.2.1 => 1.1.2.2 ===
         self.moved_event = ObjectMovedEvent(self.location,
                                             self.new_location)
-        ObjectHub() # self.object_hub = ObjectHub()
+        self.object_hub = ObjectHub()
 
 
 class TestObjectAddedEvent(BasicHubTest):
@@ -47,7 +47,7 @@
         Compare getRuidForLocation and getLocationForRuid
         
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         event = self.added_event
         location = self.location
         
@@ -66,7 +66,7 @@
         """Test that we don't find an ruid for location
            that we haven't added.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         event = self.added_event
         location = self.location
         
@@ -80,7 +80,7 @@
         """Test that we don't find a location for an ruid
            that isn't there.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         event = self.added_event
         
         # Do not add the location to the hub
@@ -97,7 +97,7 @@
         """Test that a location that is added then removed is
            actually gone.        
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event = self.added_event
         removed_event = self.removed_event
         location = self.location
@@ -117,7 +117,7 @@
     def testRemovedAbsentLocation(self):
         """Test that removing an absent location is silently ignored.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event = self.added_event
         removed_event = self.removed_event
         location = self.location
@@ -134,7 +134,7 @@
         """Test that lookup state does not change after an object
         modify event.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event = self.added_event
         modified_event = self.modified_event
         location = self.location
@@ -161,7 +161,7 @@
         modify event. In this case, modify of an absent location is
         a noop.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event = self.added_event
         modified_event = self.modified_event
         location = self.location
@@ -177,7 +177,7 @@
     def testMovedLocation(self):
         """Test that the location does indeed change after a move.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event = self.added_event
         moved_event = self.moved_event
         location = self.location
@@ -199,7 +199,7 @@
     def testMovedAbsentLocation(self):
         """Test that moving an absent location is a noop.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event = self.added_event
         moved_event = self.moved_event
         location = self.location
@@ -215,7 +215,7 @@
     def testMovedToExistingLocation(self):
         """Test that moving to an existing location raises ObjectHubError.
         """
-        hub = ObjectHub() # self.object_hub
+        hub = self.object_hub
         added_event2 = self.added_new_location_event
         moved_event = self.moved_event