[CalendarServer-changes] [5697] CalendarServer/branches/new-store/txcaldav/calendarstore/test/common .py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 7 14:12:47 PDT 2010
Revision: 5697
http://trac.macosforge.org/projects/calendarserver/changeset/5697
Author: glyph at apple.com
Date: 2010-06-07 14:12:41 -0700 (Mon, 07 Jun 2010)
Log Message:
-----------
Test that new calendar objects have a property store (at least a minimally functioning one)
Modified Paths:
--------------
CalendarServer/branches/new-store/txcaldav/calendarstore/test/common.py
Modified: CalendarServer/branches/new-store/txcaldav/calendarstore/test/common.py
===================================================================
--- CalendarServer/branches/new-store/txcaldav/calendarstore/test/common.py 2010-06-07 19:46:31 UTC (rev 5696)
+++ CalendarServer/branches/new-store/txcaldav/calendarstore/test/common.py 2010-06-07 21:12:41 UTC (rev 5697)
@@ -757,6 +757,19 @@
self.checkPropertiesMethod(self.calendarObjectUnderTest())
+ def test_newCalendarObjectProperties(self):
+ """
+ L{ICalendarObject.properties} returns an empty property store for a
+ calendar object which has been created but not committed.
+ """
+ calendar = self.calendarUnderTest()
+ calendar.createCalendarObjectWithName(
+ "4.ics", VComponent.fromString(event4_text)
+ )
+ newEvent = calendar.calendarObjectWithName("4.ics")
+ self.assertEquals(newEvent.properties().items(), [])
+
+
def test_setComponentPreservesProperties(self):
"""
L{ICalendarObject.setComponent} preserves properties.
@@ -794,7 +807,7 @@
self.commit()
self.assertEquals(
self.calendarObjectUnderTest().properties()[propertyName],
- propertyContent)
+ propertyContent
+ )
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100607/70311c62/attachment.html>
More information about the calendarserver-changes
mailing list