[CalendarServer-changes] [15319] CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/caldav/tests /test_makecalendar.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 16 10:20:33 PST 2015
Revision: 15319
http://trac.calendarserver.org//changeset/15319
Author: cdaboo at apple.com
Date: 2015-11-16 10:20:33 -0800 (Mon, 16 Nov 2015)
Log Message:
-----------
Fix test for missing DAV:set element.
Modified Paths:
--------------
CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/caldav/tests/test_makecalendar.py
Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/caldav/tests/test_makecalendar.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/caldav/tests/test_makecalendar.py 2015-11-16 18:17:44 UTC (rev 15318)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/caldav/tests/test_makecalendar.py 2015-11-16 18:20:33 UTC (rev 15319)
@@ -46,9 +46,11 @@
self.assertEqual(
os.getvalue(), """<?xml version='1.0' encoding='utf-8'?>
<ns0:mkcalendar xmlns:ns0="urn:ietf:params:xml:ns:caldav">
- <ns1:prop xmlns:ns1="DAV:">
- <ns1:displayname>home</ns1:displayname>
- </ns1:prop>
+ <ns1:set xmlns:ns1="DAV:">
+ <ns1:prop>
+ <ns1:displayname>home</ns1:displayname>
+ </ns1:prop>
+ </ns1:set>
</ns0:mkcalendar>
""".replace("\n", "\r\n")
)
@@ -63,10 +65,12 @@
self.assertEqual(
os.getvalue(), """<?xml version='1.0' encoding='utf-8'?>
<ns0:mkcalendar xmlns:ns0="urn:ietf:params:xml:ns:caldav">
- <ns1:prop xmlns:ns1="DAV:">
- <ns1:displayname>home</ns1:displayname>
- <ns0:calendar-description>my personal calendar</ns0:calendar-description>
- </ns1:prop>
+ <ns1:set xmlns:ns1="DAV:">
+ <ns1:prop>
+ <ns1:displayname>home</ns1:displayname>
+ <ns0:calendar-description>my personal calendar</ns0:calendar-description>
+ </ns1:prop>
+ </ns1:set>
</ns0:mkcalendar>
""".replace("\n", "\r\n")
)
@@ -104,9 +108,11 @@
self.assertEqual(
os.getvalue(), """<?xml version='1.0' encoding='utf-8'?>
<ns0:mkcalendar xmlns:ns0="urn:ietf:params:xml:ns:caldav">
- <ns1:prop xmlns:ns1="DAV:">
- <ns0:calendar-timezone>%s</ns0:calendar-timezone>
- </ns1:prop>
+ <ns1:set xmlns:ns1="DAV:">
+ <ns1:prop>
+ <ns0:calendar-timezone>%s</ns0:calendar-timezone>
+ </ns1:prop>
+ </ns1:set>
</ns0:mkcalendar>
""".replace("\n", "\r\n") % (timezone.replace("&", "&"),)
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151116/aed406e8/attachment.html>
More information about the calendarserver-changes
mailing list