[Commits] (pavlov) updating test to not fail :)

commits at osafoundation.org commits at osafoundation.org
Tue Jan 27 12:02:25 PST 2004


Commit by: pavlov
Modified files:
osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py 1.4 1.5

Log message:
updating test to not fail :)


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py.diff?r1=text&tr1=1.4&r2=text&tr2=1.5

Index: osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py:1.4 osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py:1.5
--- osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py:1.4	Mon Jan 26 11:22:46 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/notifications/tests/TestNotifications.py	Tue Jan 27 12:01:54 2004
@@ -1,7 +1,7 @@
 """ Notification Manager unit tests """
 
-__revision__  = "$Revision: 1.4 $"
-__date__      = "$Date: 2004/01/26 19:22:46 $"
+__revision__  = "$Revision: 1.5 $"
+__date__      = "$Date: 2004/01/27 20:01:54 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -21,12 +21,10 @@
 
 
 def repositoryCallback(uuid, notification, reason, **kwds):
-    if notification == 'ItemChanged':
+    if notification == 'History':
         eventPath = '//parcels/OSAF/framework/item_' + reason
-    elif notification == 'CollectionChanged':
-        return
     else:
-        assert(0)
+        return
 
     event = Globals.repository.find(eventPath)
 



More information about the Commits mailing list