[CalendarServer-changes] [504] CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/ directory/test/util.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Nov 16 20:16:27 PST 2006


Revision: 504
          http://trac.macosforge.org/projects/calendarserver/changeset/504
Author:   cdaboo at apple.com
Date:     2006-11-16 20:16:26 -0800 (Thu, 16 Nov 2006)

Log Message:
-----------
Add missing test for listing resource records - but only do it if we expect some.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/test/util.py

Modified: CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/test/util.py
===================================================================
--- CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/test/util.py	2006-11-17 03:11:16 UTC (rev 503)
+++ CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/test/util.py	2006-11-17 04:16:26 UTC (rev 504)
@@ -63,6 +63,13 @@
         """
         self.assertEquals(set(self.service().listRecords("group")), set(self.groups.keys()))
 
+    def test_listRecords_resources(self):
+        """
+        IDirectoryService.listRecords("resources")
+        """
+        if len(self.resources):
+            self.assertEquals(set(self.service().listRecords("resource")), self.resources)
+
     def test_recordWithShortName_user(self):
         """
         IDirectoryService.recordWithShortName("user")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061116/874e745c/attachment.html


More information about the calendarserver-changes mailing list