[Checkins] SVN: grok/trunk/src/grok/tests/event/subscriber.py added
test for concrete event class
Wolfgang Schnerring
wosc at wosc.de
Tue Oct 17 09:32:19 EDT 2006
Log message for revision 70745:
added test for concrete event class
Changed:
U grok/trunk/src/grok/tests/event/subscriber.py
-=-
Modified: grok/trunk/src/grok/tests/event/subscriber.py
===================================================================
--- grok/trunk/src/grok/tests/event/subscriber.py 2006-10-17 13:30:03 UTC (rev 70744)
+++ grok/trunk/src/grok/tests/event/subscriber.py 2006-10-17 13:32:18 UTC (rev 70745)
@@ -6,6 +6,8 @@
>>> grok.notify(grok.ObjectCreatedEvent(manfred))
>>> mammoths
['Manfred']
+ >>> mammoths2
+ ['Manfred']
"""
import grok
@@ -15,7 +17,12 @@
self.name = name
mammoths = []
+mammoths2 = []
@grok.subscribe(Mammoth, grok.IObjectCreatedEvent)
def mammothAdded(mammoth, event):
mammoths.append(mammoth.name)
+
+ at grok.subscribe(Mammoth, grok.ObjectCreatedEvent)
+def mammothAddedInstance(mammoth, event):
+ mammoths2.append(mammoth.name)
More information about the Checkins
mailing list