[CalendarServer-changes] [1742] CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/ directory/test/test_principal.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 31 14:28:56 PDT 2007


Revision: 1742
          http://trac.macosforge.org/projects/calendarserver/changeset/1742
Author:   wsanchez at apple.com
Date:     2007-07-31 14:28:56 -0700 (Tue, 31 Jul 2007)

Log Message:
-----------
Check principal URL and alternates as well.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/directory/test/test_principal.py

Modified: CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/directory/test/test_principal.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/directory/test/test_principal.py	2007-07-31 21:28:30 UTC (rev 1741)
+++ CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/directory/test/test_principal.py	2007-07-31 21:28:56 UTC (rev 1742)
@@ -120,7 +120,7 @@
                     self.failUnless(isinstance(recordResource, DirectoryPrincipalResource))
 
                     recordURL = typeURL + shortName + "/"
-                    self.assertEquals(recordURL, recordResource.principalURL())
+                    self.assertIn(recordURL, (recordResource.principalURL(),) + tuple(recordResource.alternateURIs()))
 
                     principalCollections = recordResource.principalCollections()
                     self.assertEquals(set((provisioningURL,)), set(pc.principalCollectionURL() for pc in principalCollections))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070731/78fbdcc1/attachment.html


More information about the calendarserver-changes mailing list