[Zope-Checkins] CVS: Zope3/lib/python/Zope/Event/tests - testEventService.py:1.1.2.9

Gary Poster garyposter@earthlink.net
Sat, 18 May 2002 22:24:22 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	testEventService.py 
Log Message:
More tests of the event service code--the majority of it is a translation of the global event service tests for the local event service, but there are a few new ones as well.  I plan for a few more to come.  A fix or two for errors that the tests found also included.



=== Zope3/lib/python/Zope/Event/tests/testEventService.py 1.1.2.8 => 1.1.2.9 ===
         self.assertEqual(self.subscriber.notified, 0)        
         self.service.publishEvent(self.event)
-        self.assertEqual(self.subscriber.notified, 1)        
+        self.assertEqual(self.subscriber.notified, 1)
 
     def testpublishEvent2(self):
         """Test publishEvent method where subscriber has been
@@ -233,7 +233,7 @@
             event_type=IObjectAddedEvent,
             )
         self.service.publishEvent(self.event)
-        self.assertEqual(self.subscriber.notified, 2)        
+        self.assertEqual(self.subscriber.notified, 2) 
 
     def testpublishEvent3(self):
         """Test publishEvent method where subscriber has been
@@ -250,7 +250,7 @@
             event_type=IObjectAddedEvent
             )
         self.service.publishEvent(DummyEvent())
-        self.assertEqual(self.subscriber.notified, 2)        
+        self.assertEqual(self.subscriber.notified, 2)
 
     def testpublishEvent4(self):
         """Test publishEvent method to make sure that we don't