[CalendarServer-changes] [9194] CalendarServer/branches/users/glyph/sharing-api
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 26 17:08:43 PDT 2012
Revision: 9194
http://trac.macosforge.org/projects/calendarserver/changeset/9194
Author: glyph at apple.com
Date: 2012-04-26 17:08:43 -0700 (Thu, 26 Apr 2012)
Log Message:
-----------
include the bind mode
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/sharing-api/
Modified: CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py
===================================================================
--- CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py 2012-04-27 00:08:40 UTC (rev 9193)
+++ CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py 2012-04-27 00:08:43 UTC (rev 9194)
@@ -43,6 +43,7 @@
from txdav.common.icommondatastore import ObjectResourceNameAlreadyExistsError
from txdav.common.inotifications import INotificationObject
from txdav.common.datastore.test.util import CommonCommonTests
+from txdav.common.datastore.sql_tables import _BIND_MODE_WRITE
from txdav.caldav.icalendarstore import (
ICalendarObject, ICalendarHome,
@@ -990,11 +991,12 @@
"""
cal = yield self.calendarUnderTest()
OTHER_HOME_UID = "home_splits"
- newCalName = yield cal.shareWithUID(OTHER_HOME_UID)
- self.commit()
+ newCalName = yield cal.shareWithUID(OTHER_HOME_UID, _BIND_MODE_WRITE)
+ yield self.commit()
normalCal = yield self.calendarUnderTest()
otherCal = yield self.calendarUnderTest(name=newCalName,
home=OTHER_HOME_UID)
+ self.assertNotIdentical(otherCal, None)
self.assertEqual(
(yield otherCal.calendarObjectWithName("1.ics")).component(),
(yield normalCal.calendarObjectWithName("1.ics")).component())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120426/3391c2eb/attachment.html>
More information about the calendarserver-changes
mailing list