[CalendarServer-changes] [6728] CalendarServer/trunk/txdav/caldav/datastore/test/common.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 11 13:53:22 PST 2011


Revision: 6728
          http://trac.macosforge.org/projects/calendarserver/changeset/6728
Author:   glyph at apple.com
Date:     2011-01-11 13:53:13 -0800 (Tue, 11 Jan 2011)
Log Message:
-----------
Order should not matter in this test.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/caldav/datastore/test/common.py

Modified: CalendarServer/trunk/txdav/caldav/datastore/test/common.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/test/common.py	2011-01-11 21:36:05 UTC (rev 6727)
+++ CalendarServer/trunk/txdav/caldav/datastore/test/common.py	2011-01-11 21:53:13 UTC (rev 6728)
@@ -294,13 +294,13 @@
         abc = yield notifications.notificationObjectWithUID("abc")
         self.assertEquals((yield abc.xmldata()), inviteNotification2.toxml())
 
+
     @inlineCallbacks
     def test_addRemoveNotification(self):
         """
         L{INotificationCollection.writeNotificationObject} will silently
         overwrite the notification object.
         """
-        
         # Prime the home collection first
         yield self.transactionUnderTest().notificationsWithUID(
             "home1"
@@ -343,6 +343,7 @@
             ]
         )
 
+
     @inlineCallbacks
     def test_loadAllNotifications(self):
         """
@@ -365,8 +366,10 @@
             "home1"
         )
         allObjects = yield notifications.notificationObjects()
-        self.assertEqual([obj.uid() for obj in allObjects], ["abc", "def"])
+        self.assertEqual(set([obj.uid() for obj in allObjects]),
+                         set(["abc", "def"]))
 
+
     @inlineCallbacks
     def test_notificationObjectMetaData(self):
         """
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110111/2685d32a/attachment.html>


More information about the calendarserver-changes mailing list