[Zope3-checkins] CVS: Zope3/src/zope/app/event/tests - test_logger.py:1.9

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 13:50:31 -0400


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

Modified Files:
	test_logger.py 
Log Message:
Make minimal improvement to the detail view in the global event service.

The code disabled with an "XXX this doesn't seem to work" comment
seems to work.  The output isn't pretty, but it's better than nothing.


=== Zope3/src/zope/app/event/tests/test_logger.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/event/tests/test_logger.py:1.8	Sat Mar  8 16:46:04 2003
+++ Zope3/src/zope/app/event/tests/test_logger.py	Mon Jun 30 13:50:30 2003
@@ -74,7 +74,8 @@
         self.assertEqual(result.levelno, logging.INFO)
         self.assertEqual(result.getMessage(),
                          "zope.app.event.objectevent.ObjectAddedEvent: "
-                         "XXX detail temporarily disabled\n")
+                         "[('_ObjectEvent__location', 'foo'), "
+                         "('object', None)]\n")
         self.assertEqual(result.exc_info, None)
 
 class TestLogger2(TestLogger1):
@@ -88,9 +89,11 @@
         result = results[0]
         self.assertEqual(result.name, "Event.Logger")
         self.assertEqual(result.levelno, logging.CRITICAL)
+        print result.getMessage()
         self.assertEqual(result.getMessage(),
                          "zope.app.event.objectevent.ObjectAddedEvent: "
-                         "XXX detail temporarily disabled\n")
+                         "[('_ObjectEvent__location', 'foo'), "
+                         "('object', None)]\n")
         self.assertEqual(result.exc_info, None)
 
 def test_suite():