[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event/tests - testLogger.py:1.6
Steve Alexander
steve@cat-box.net
Thu, 5 Dec 2002 08:44:14 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Event/tests
In directory cvs.zope.org:/tmp/cvs-serv31379/lib/python/Zope/Event/tests
Modified Files:
testLogger.py
Log Message:
Make the ObjectEvent base class smarter about getting you a location
if it is not provided originally.
Disabled some of the features of the Logger that depended on details
of the Event object implementations, not their interfaces.
This needs to be refactored later, using adapters to get an appropriate
logging presentation for an event.
=== Zope3/lib/python/Zope/Event/tests/testLogger.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/Event/tests/testLogger.py:1.5 Sun Dec 1 05:32:29 2002
+++ Zope3/lib/python/Zope/Event/tests/testLogger.py Thu Dec 5 08:44:11 2002
@@ -65,16 +65,16 @@
def testLogger(self):
"Test the logger logs appropriately"
# check the dopey logger
- self.assertEqual(self.logger.result,
- [
- (
- 'Event.Logger',
- BLATHER,
- 'Zope.Event.ObjectEvent.ObjectAddedEvent',
- "[('location', 'foo'), ('object', None)]\n",
- None,
+ self.assertEqual(
+ self.logger.result,
+ [('Event.Logger',
+ BLATHER,
+ 'Zope.Event.ObjectEvent.ObjectAddedEvent',
+ #"[('location', 'foo'), ('object', None)]\n",
+ 'XXX detail temporarily disabled\n',
+ None,
+ )]
)
- ])
class TestLogger2(TestLogger1):
@@ -89,7 +89,8 @@
'Event.Logger',
PANIC,
'Zope.Event.ObjectEvent.ObjectAddedEvent',
- "[('location', 'foo'), ('object', None)]\n",
+ #"[('location', 'foo'), ('object', None)]\n",
+ 'XXX detail temporarily disabled\n',
None,
)
])