[CalendarServer-changes] [2024] CalendarServer/branches/release/CalendarServer-1.1-dev/twistedcaldav /directory/test/test_principal.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 26 17:45:25 PST 2007


Revision: 2024
          http://trac.macosforge.org/projects/calendarserver/changeset/2024
Author:   wsanchez at apple.com
Date:     2007-11-26 17:45:24 -0800 (Mon, 26 Nov 2007)

Log Message:
-----------
Pulled up r2023 from trunk.

Modified Paths:
--------------
    CalendarServer/branches/release/CalendarServer-1.1-dev/twistedcaldav/directory/test/test_principal.py

Modified: CalendarServer/branches/release/CalendarServer-1.1-dev/twistedcaldav/directory/test/test_principal.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-1.1-dev/twistedcaldav/directory/test/test_principal.py	2007-11-26 19:57:02 UTC (rev 2023)
+++ CalendarServer/branches/release/CalendarServer-1.1-dev/twistedcaldav/directory/test/test_principal.py	2007-11-27 01:45:24 UTC (rev 2024)
@@ -189,8 +189,11 @@
 
             for address in tuple(record.calendarUserAddresses) + (principalURL, alternateURL):
                 principal = provisioningResource.principalForCalendarUserAddress(address)
-                self.failIf(principal is None)
-                self.assertEquals(record, principal.record)
+                if record.enabledForCalendaring:
+                    self.failIf(principal is None)
+                    self.assertEquals(record, principal.record)
+                else:
+                    self.failIf(principal is not None)
 
     def test_autoSchedule(self):
         """

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20071126/b7f64615/attachment-0001.html


More information about the calendarserver-changes mailing list