[CalendarServer-changes] [5502] CalendarServer/trunk/calendarserver/tools/test/test_gateway.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 21 10:25:54 PDT 2010


Revision: 5502
          http://trac.macosforge.org/projects/calendarserver/changeset/5502
Author:   sagen at apple.com
Date:     2010-04-21 10:25:53 -0700 (Wed, 21 Apr 2010)
Log Message:
-----------
Ensure that resource type gets round-tripped

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/test/test_gateway.py

Modified: CalendarServer/trunk/calendarserver/tools/test/test_gateway.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/test/test_gateway.py	2010-04-21 15:58:33 UTC (rev 5501)
+++ CalendarServer/trunk/calendarserver/tools/test/test_gateway.py	2010-04-21 17:25:53 UTC (rev 5502)
@@ -131,6 +131,7 @@
         results = yield self.runCommand(command_createResource)
         results = yield self.runCommand(command_getResourceAttributes)
         self.assertEquals(results["result"]["Comment"], "Test Comment")
+        self.assertEquals(results["result"]["Type"], "Computer")
 
     @inlineCallbacks
     def test_createLocation(self):
@@ -343,6 +344,8 @@
         <string>AF575A61-CFA6-49E1-A0F6-B5662C9D9801</string>
         <key>RealName</key>
         <string>Laptop 1</string>
+        <key>Type</key>
+        <string>Computer</string>
         <key>RecordName</key>
         <array>
                 <string>laptop1</string>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100421/b285cd7e/attachment.html>


More information about the calendarserver-changes mailing list