[CalendarServer-changes] [12316] twext/trunk/twext/who/test

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:25:08 PDT 2014


Revision: 12316
          http://trac.calendarserver.org//changeset/12316
Author:   wsanchez at apple.com
Date:     2014-01-11 15:56:16 -0800 (Sat, 11 Jan 2014)
Log Message:
-----------
Test guid field with value

Modified Paths:
--------------
    twext/trunk/twext/who/test/test_aggregate.py
    twext/trunk/twext/who/test/test_xml.py

Modified: twext/trunk/twext/who/test/test_aggregate.py
===================================================================
--- twext/trunk/twext/who/test/test_aggregate.py	2014-01-11 23:39:39 UTC (rev 12315)
+++ twext/trunk/twext/who/test/test_aggregate.py	2014-01-11 23:56:16 UTC (rev 12316)
@@ -191,6 +191,7 @@
 
   <record type="user">
     <uid>__dre__</uid>
+    <guid>A3B1158F-0564-4F5B-81E4-A89EA5FF81B0</guid>
     <short-name>dre</short-name>
     <full-name>Andre LaBranche</full-name>
     <password>erd</password>

Modified: twext/trunk/twext/who/test/test_xml.py
===================================================================
--- twext/trunk/twext/who/test/test_xml.py	2014-01-11 23:39:39 UTC (rev 12315)
+++ twext/trunk/twext/who/test/test_xml.py	2014-01-11 23:56:16 UTC (rev 12316)
@@ -68,6 +68,7 @@
     @inlineCallbacks
     def test_recordWithGUID(self):
         service = self.service()
+
         record = (
             yield service.recordWithGUID(
                 UUID("6C495FCD-7E78-4D5C-AA66-BC890AD04C9D")
@@ -75,6 +76,14 @@
         )
         self.assertEquals(record, None)
 
+        record = (
+            yield service.recordWithGUID(
+                UUID("A3B1158F-0564-4F5B-81E4-A89EA5FF81B0")
+            )
+        )
+        self.assertEquals(record.uid, u"__dre__")
+
+
     @inlineCallbacks
     def test_recordsWithRecordType(self):
         service = self.service()
@@ -903,6 +912,7 @@
 
   <record type="user">
     <uid>__dre__</uid>
+    <guid>A3B1158F-0564-4F5B-81E4-A89EA5FF81B0</guid>
     <short-name>dre</short-name>
     <full-name>Andre LaBranche</full-name>
     <password>erd</password>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/10846939/attachment.html>


More information about the calendarserver-changes mailing list